Dmytro Tsyliuryk
12/14/2021, 10:39 AMyuhan
12/14/2021, 5:12 PMDmytro Tsyliuryk
12/14/2021, 5:14 PMyuhan
12/14/2021, 5:35 PMcontext.instance.get_run_records(
filters=PipelineRunsFilter(pipeline_name="your_job_name")
)
and run records give you info about the run status which indicates if a run is running or has succeeded/failed.Dmytro Tsyliuryk
12/15/2021, 7:16 AMjust to clarify, Airflow’s max_active_runs applies to the number of the same job or the number of concurrent runs for all jobs?the same job
yuhan
12/20/2021, 8:39 PM@schedule(...)
def my_schedule(context):
run_records = context.instance.get_run_records(
PipelineRunsFilter(
pipeline_name="your_job_name",
statuses=[PipelineRunStatus.STARTED],
)
)
if len(run_records) == 0:
yield RunRequest(...)
Dmytro Tsyliuryk
12/21/2021, 2:36 PMyuhan
06/15/2022, 7:24 PMDagster Bot
06/15/2022, 7:24 PM