You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "kakoni (via GitHub)" <gi...@apache.org> on 2024/08/16 10:56:58 UTC
[I] wait_for_downstream doesn't seem to work as expected [airflow]
kakoni opened a new issue, #41526:
URL: https://github.com/apache/airflow/issues/41526
### Apache Airflow version
2.10.0rc1
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
Running this test code on 16. August. It does catchup.
```
from airflow.decorators import dag
from airflow.operators.bash import BashOperator
from datetime import datetime, timedelta
default_args = {
'depends_on_past': True,
'wait_for_downstream': True,
}
@dag(
start_date=datetime(2024, 8, 10),
default_args=default_args,
schedule_interval='0 6 * * *'
)
def test2():
t1 = BashOperator(task_id='t1', bash_command="sleep 10")
t2 = BashOperator(task_id='t2', bash_command="sleep 10")
t3 = BashOperator(task_id='t3', bash_command="sleep 10")
t4 = BashOperator(task_id='t4', bash_command="sleep 10")
t5 = BashOperator(task_id='t5', bash_command="sleep 10")
t1 >> t2 >> t3 >> t4 >> t5
test2()
```
It proceeds to running tasks on the next day before the earlier day is finished.
<img width="297" alt="Pasted Graphic" src="https://github.com/user-attachments/assets/a29e702e-a74d-44c8-b6ec-9221342cb7aa">
### What you think should happen instead?
I'm assuming that it should run all the tasks for Aug 13, before proceeding to any task on Aug 14
### How to reproduce
Run the provided dag code.
### Operating System
Docker
### Versions of Apache Airflow Providers
_No response_
### Deployment
Docker-Compose
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] wait_for_downstream doesn't seem to work as expected [airflow]
Posted by "kakoni (via GitHub)" <gi...@apache.org>.
kakoni commented on issue #41526:
URL: https://github.com/apache/airflow/issues/41526#issuecomment-2294856522
@romsharon98 Thank you, I guess I misunderstood how wait_for_downstream flag works. So the corrective action would be to set max_active_runs to 1 for this dag I guess.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] wait_for_downstream doesn't seem to work as expected [airflow]
Posted by "romsharon98 (via GitHub)" <gi...@apache.org>.
romsharon98 commented on issue #41526:
URL: https://github.com/apache/airflow/issues/41526#issuecomment-2294877468
> @romsharon98 Thank you, I guess I misunderstood how wait_for_downstream flag works. So the corrective action would be to set max_active_runs to 1 for this dag I guess.
Exactly
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] wait_for_downstream doesn't seem to work as expected [airflow]
Posted by "kakoni (via GitHub)" <gi...@apache.org>.
kakoni closed issue #41526: wait_for_downstream doesn't seem to work as expected
URL: https://github.com/apache/airflow/issues/41526
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] wait_for_downstream doesn't seem to work as expected [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #41526:
URL: https://github.com/apache/airflow/issues/41526#issuecomment-2293292518
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] wait_for_downstream doesn't seem to work as expected [airflow]
Posted by "romsharon98 (via GitHub)" <gi...@apache.org>.
romsharon98 commented on issue #41526:
URL: https://github.com/apache/airflow/issues/41526#issuecomment-2293656275
The behavior is as expected.
It start a new DagRun because the default max_active_runs is 16.
But it does not start the first task until the first and second task don't finish successfully in the DagRun before.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org