Hi Pawel,

I think you can change the start_date to later dates to avoid the DagRun of
2019-04-16 02:00 being scheduled.

Chao-Han

On Wed, Apr 17, 2019 at 10:13 AM Pawel Bartoszek <
pawel.bartoszek....@gmail.com> wrote:

> Hi,
>
> Let's say I deploy the following DAG at 2019-04-17 5 PM
>
> DAG(
>         dag_id="dag",
>         start_date=datetime(year=2018, month=1, day=1, hour=2, minute=0),
>         schedule_interval="0 2 * * *,
>         default_view="graph",
>         orientation="TB",
>         concurrency=1,
>         max_active_runs=1,
>         catchup=False)
>
>
> I noticed that DAG will be first scheduled for yesterday ie 2019-04-16 2
> AM. How can I avoid this? I want the DAG to be scheduled in the future
> according to the cron expression ie 2019-04-18 2 AM.
>
> Setting schedule_interval as
>
> schedule_interval=timedelta(hours=24),
>
> correct me if I am wrong but Airflow seems to schedule DAG 24 hours in the
> past from the time DAG was deployed.
>
> Thanks,
> Pawel
>


-- 

Chao-Han Tsai

Reply via email to