Skip to content

Handle fail_stop / non teardown tasks in TASK SDK #44951

Description

@amoghrajesh

Body

Handle the part where we stop all remaining tasks for while marking a task as failed.
Usage:

if task and fail_stop:
_stop_remaining_tasks(task_instance=ti, session=session)

My thinking here is that we introduce the "fail_stop" property in the serialised dag and while executing a task (marking it running -- done in the /run endpoint in execution API), if that property is set, we just fail.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions