Skip to content

Commit 75fa955

Browse files
was_workflow_error flag (#38)
1 parent f90b6f5 commit 75fa955

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

apis/workflows/v1/task.proto

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ message TaskFailedRequest {
7979
tilebox.v1.ID task_id = 1 [(buf.validate.field).required = true];
8080
// A display name for the task that has failed for visualization purposes.
8181
string display = 2;
82-
// Whether to cancel the job that the task belongs to.
83-
bool cancel_job = 3;
82+
// Whether the failure was caused by the workflow itself, as opposed to a failure in the task runner
83+
// (e.g. a requested runner shutdown). If the task failure was not a workflow error, it won't be marked as failed,
84+
// but will instead be QUEUED again. Since the task didn't actually fail, this does not count as a retry.
85+
bool was_workflow_error = 3;
8486
// A list of progress updates that the failed task wants to report. Even if a task fails, it could
8587
// still have made some progress before failing, and we want to reflect that progress.
8688
// Since progress updates are idempotent, retrying the task and getting the same progress update again

0 commit comments

Comments
 (0)