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 2022/07/29 18:16:02 UTC
[GitHub] [airflow] park-peter opened a new issue, #25408: data interval for manual runs show different behavior compared to scheduled runs
park-peter opened a new issue, #25408:
URL: https://github.com/apache/airflow/issues/25408
### Apache Airflow version
2.3.3 (latest released)
### What happened
When manually triggering a dag run using "Trigger DAG w/ config" and setting the logical date and time, the UI of the dag run triggered will show a data interval that is two schedule intervals off. For example, for a daily run, setting the logical date to 2022-07-24 00:00:00 UTC would show the data interval with a start date of 2022-07-22 and end of 2022-07-23. Rendering {{ ds_nodash }} on this run will show "2022-07-24" which is correct, but since the grid view orders the runs on the incorrect start date, things can get confusing.
![image](https://user-images.githubusercontent.com/46539900/181814188-5bf75da4-e0f8-4e62-b51b-b81d066df17f.png)
### What you think should happen instead
Either the data interval behaves the same as with the scheduled run and show start date as the logical date and the end date as the logical date + schedule interval, or, per the documentation [here](https://airflow.apache.org/docs/apache-airflow/stable/faq.html#why-next-ds-or-prev-ds-might-not-contain-expected-values) the prev_ds == next_ds == ds and so the data interval should all be 2022-07-24 for the above example.
### How to reproduce
1. Create a simple DAG with a schedule interval, as such:
```
import json
from datetime import datetime
from airflow.decorators import dag, task
@dag(
schedule_interval="@daily",
start_date=datetime(2021, 1, 1),
catchup=False,
)
def example_dag_basic():
@task()
def example():
print("this is an example task")
example()
example_dag_basic = example_dag_basic()
```
2. Trigger a run using "Trigger DAG w/ config" and manually create a run for some date
3. Observe the start date as 2 schedules off.
### Operating System
Debian Bullseye
### Versions of Apache Airflow Providers
_No response_
### Deployment
Astronomer
### Deployment details
Local was tested on docker compose (from astro-cli)
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] 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
[GitHub] [airflow] boring-cyborg[bot] commented on issue #25408: data interval for manual runs show different behavior compared to scheduled runs
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #25408:
URL: https://github.com/apache/airflow/issues/25408#issuecomment-1199822865
Thanks for opening your first issue here! Be sure to follow the issue template!
--
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
[GitHub] [airflow] uranusjr commented on issue #25408: data interval for manual runs show different behavior compared to scheduled runs
Posted by GitBox <gi...@apache.org>.
uranusjr commented on issue #25408:
URL: https://github.com/apache/airflow/issues/25408#issuecomment-1200080694
Duplicate of #23689
--
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
[GitHub] [airflow] uranusjr closed issue #25408: data interval for manual runs show different behavior compared to scheduled runs
Posted by GitBox <gi...@apache.org>.
uranusjr closed issue #25408: data interval for manual runs show different behavior compared to scheduled runs
URL: https://github.com/apache/airflow/issues/25408
--
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