[Python] Airflow Scheduling job every 6 hours starting at 3am

Discussão em 'Python' iniciado por Stack, Dezembro 20, 2024.

  1. Stack

    Stack Membro Participativo

    How can I set an Airflow job to start at 3AM and subsequently run every 6 hours (at 9AM, 3PM, and 9PM). My current cron expression is 0 3,9,15,21 * * * but this results in runs at 9am, 3pm, and 9pm. I understand that at 3am, the data interval is started so thats why the job starts at 9am instead but how can I get it to start at 3am?

    Essentially the logical date for the 3am job should be 9pm the previous day, how do I make this happen? Should I set start_date parameter to days_ago(1) instead of days_ago(0)?

    Continue reading...

Compartilhe esta Página