Closed meteoDaniel closed 2 years ago
Thanks for opening your first issue here! Be sure to follow the issue template!
Do you have catchup_by_default
set to False since adding the job later in the day with catchup
as False might result in missed run as below example in docs. Does this happen everyday where only 2 runs are executed?
https://airflow.apache.org/docs/apache-airflow/stable/dag-run.html#catchup
@tirkarthi I have tested both and it was the same every day.
The schedule from 9:50-15:50 and from 15:50 to 21:50 ran but the ones from 21:50 to 3:50 and from 3:50 to 9:50 not.
I have started airflow yesterday. So I expected that these two runs will be scheduled.
Can you try to make start_date static instead of dynamic? I think it can make some trouble.
@themax087 I had the same idea 5 minutes ago on my way to bed 😅
I think the scheduler takes the Argument multiple times and each time it will interrupt schedule from 21:50-3:50 and 3:50-9:50 by setting the start to the current day.
Please add reproduce example with static stat_date. dynamic start_date is a bad practice and a source for a lot of troubles. https://airflow.apache.org/docs/apache-airflow/stable/faq.html#dag-construction
@eladkal dynamic start_date was not my intention. In the past I had some trouble with catch up so I thought it would be a nice idea to have start_date always equal the day I update the project. So I ran into this issue.
My problem is solved so far.
I have the same issue even I'm using static hard-coded time for start_date. Cron based scheduling is not taking effect, instead, the job is running everyday midnight started from start_date.
@BilashAmantay please, open separate issues with your code. Everyday midnight is default schedule, as far as I remember. Maybe, you are trying to pass wrong kwarg or smth
Apache Airflow version
2.2.5 (latest released)
What happened
I have defined a DAG
And it should run 4 times a day, according to the defined cron
50 3,9,15,21 * * *
But airflow skips every second run.
What you think should happen instead
I expected that Airflow take every schedule interval and not every second.
How to reproduce
Operating System
Ubuntu 21.04
Versions of Apache Airflow Providers
My Dockerfile:
Deployment
Docker-Compose
Deployment details
docker-compose:
Anything else
No
Are you willing to submit PR?
Code of Conduct