psmukherjee009 opened a new issue #16164:
URL: https://github.com/apache/airflow/issues/16164
#!/usr/bin/env python3
from airflow.models import DAG
from airflow.operators.bash import BashOperator
from airflow.utils.dates import days_ago
from datetime import timedelta
args = {
'owner': 'partha',
'depends_on_past': False,
'start_date': days_ago(6),
'retries': 0,
'retry_delay': timedelta(minutes=5)
}
dag = DAG(
dag_id='scheduler_interval_102',
schedule_interval='15 5 * * 0',
default_args=args,
catchup=False,
tags=['Test1']
)
hello_my_task = BashOperator(
task_id='hello_task_1',
bash_command='echo "hello_world %s %s"' % (dag.dag_id,
dag.schedule_interval),
dag=dag,
)
This is a simple setup with mysql db of Airflow 2.0 in ubuntu 21.04
Change the scheduled interval to
1. '15 5 * * *'
2. '15 5 * * 0-1',
and it works
3. '15 5 * * SUN' -- does not work
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]