ashb commented on issue #4291: [AIRFLOW-1488] Add the TriggeredDagRunSensor 
operator
URL: https://github.com/apache/airflow/pull/4291#issuecomment-512850432
 
 
   A pool is not tied to any specific resource, but a way of limiting 
concurrency in Airflow.
   
   For example if you define a Pool with one slot:
   
   ```python
   dag_a = DAG('dag_a', pool="a")
   with dag_a:
       DummyOperator(task_id="a_a")
       DummyOperator(task_id="a_b")
   dag_b = DAG('dag_b', pool="a")
   with dag_b:
       DummyOperator(task_id="b_a")
       DummyOperator(task_id="b_b")
   ```
   
   then Airflow will only run at most one of those task at the same time. Since 
you said "I can not start DAT_PUBLISH if there is DAG_UPDATE_PRICES in RUNNING" 
you could define both those dags in a pool with one slot, and they wouldn't run 
at the same time.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to