freight
freight copied to clipboard
Restart a cancelled/failed task
Currently, there is no way to restart a cancelled or a failed task.
We can implement this feature by using the same pattern as the task cancellation.
Opinions?
IMO restart would be recreate to avoid losing logs/etc (and avoid needing to delete them). I'm open to ideas on how to add that to the API, but generally I imagine it'd be something like POST [task_details_endpoint]?rebuild=1 and that'd return the new build