You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/04/22 19:33:25 UTC

[GitHub] [airflow] tooptoop4 opened a new issue #8520: New boolean property in dag to prevent multi concurrent execution dates

tooptoop4 opened a new issue #8520:
URL: https://github.com/apache/airflow/issues/8520


   I want to be able to prevent the same Dagid running for multi exec dates at same time. For example DagA runs every hour I don't want the 3pm run to schedule tasks if the 2pm run is still running.
   
   I know max active dag runs is similar but it affects all dags, I want to be able to specify per dagid.
   
   Pools only operate at task level but I want to operate at dag level, in first come first serve basis, so I don't wan't to timeout the 2pm run after 60mins.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ashb commented on issue #8520: New boolean property in dag to prevent multi concurrent execution dates

Posted by GitBox <gi...@apache.org>.
ashb commented on issue #8520:
URL: https://github.com/apache/airflow/issues/8520#issuecomment-810248795


   Sorry for missing this issue when you first created. This has been possible for a long time with `DAG.max_active_runs`:
   
   ```python
   dag = DAG(dag_id="my_dag", max_active_runs=1)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ashb closed issue #8520: New boolean property in dag to prevent multi concurrent execution dates

Posted by GitBox <gi...@apache.org>.
ashb closed issue #8520:
URL: https://github.com/apache/airflow/issues/8520


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org