-1

I need to get the status of a task 'A' and trigger a task 'B' only if the task A is not in running state. Is there a possible way to do this in airflow?

1 Answers1

0

No, you could depend on a task only after it is success, failed(upstream_failed) or even ignore its status, but you cannot depends on a task's not running status, not running means one of None, scheduled, queued, successed, failed, upstream_failed, skipped, there is no this option.

buxizhizhoum
  • 1,229
  • 16
  • 26
  • But is there any other way to do this? I have a task that should run only when another task is not running at that time. Like in autosys we can give n(jobname) to do this – Rajalakshmi Jul 26 '20 at 05:32