[
https://issues.apache.org/jira/browse/AIRFLOW-1748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Di Zhu updated AIRFLOW-1748:
----------------------------
Description:
A dag python file is defined as below:
```
default_args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2017, 10, 22, 11, 25),
'email': ['[email protected]'],
'email_on_failure': False,
'email_on_retry': False,
'retries': 0,
'retry_delay': timedelta(minutes=1),
# 'queue': 'bash_queue',
# 'pool': 'backfill',
# 'priority_weight': 10,
# 'end_date': datetime(2016, 1, 1),
}
dag = DAG('test_jason_1', default_args=default_args, schedule_interval="@daily")
# t1, t2 and t3 are examples of tasks created by instantiating operators
t1 = BashOperator(
task_id='print_date',
bash_command='echo "123" && exit 1',
dag=dag)```
Current datetime from command line (same machine as where Airflow is installed)
is:
```
[ec2-user@ip-10-0-0-XXX print_date]$ date
Mon Oct 23 11:24:06 UTC 2017
```
but after 11:25:00, this job is still not scheduled accordingly. Could anyone
help correct me if i'm wrong? Thanks a lot!
was:
A dag python file is defined as below:
```default_args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2017, 10, 22, 11, 25),
'email': ['[email protected]'],
'email_on_failure': False,
'email_on_retry': False,
'retries': 0,
'retry_delay': timedelta(minutes=1),
# 'queue': 'bash_queue',
# 'pool': 'backfill',
# 'priority_weight': 10,
# 'end_date': datetime(2016, 1, 1),
}
dag = DAG('test_jason_1', default_args=default_args, schedule_interval="@daily")
# t1, t2 and t3 are examples of tasks created by instantiating operators
t1 = BashOperator(
task_id='print_date',
bash_command='echo "123" && exit 1',
dag=dag)```
Current datetime from command line (same machine as where Airflow is installed)
is:
[ec2-user@ip-10-0-0-XXX print_date]$ date
Mon Oct 23 11:24:06 UTC 2017
but after 11:25:00, this job is still not scheduled accordingly. Could anyone
help correct me if i'm wrong? Thanks a lot!
> Task is not being scheduled daily as expected in Airflow
> --------------------------------------------------------
>
> Key: AIRFLOW-1748
> URL: https://issues.apache.org/jira/browse/AIRFLOW-1748
> Project: Apache Airflow
> Issue Type: Bug
> Components: DagRun
> Environment: v1.8.0
> Reporter: Di Zhu
>
> A dag python file is defined as below:
> ```
> default_args = {
> 'owner': 'airflow',
> 'depends_on_past': False,
> 'start_date': datetime(2017, 10, 22, 11, 25),
> 'email': ['[email protected]'],
> 'email_on_failure': False,
> 'email_on_retry': False,
> 'retries': 0,
> 'retry_delay': timedelta(minutes=1),
> # 'queue': 'bash_queue',
> # 'pool': 'backfill',
> # 'priority_weight': 10,
> # 'end_date': datetime(2016, 1, 1),
> }
> dag = DAG('test_jason_1', default_args=default_args,
> schedule_interval="@daily")
> # t1, t2 and t3 are examples of tasks created by instantiating operators
> t1 = BashOperator(
> task_id='print_date',
> bash_command='echo "123" && exit 1',
> dag=dag)```
> Current datetime from command line (same machine as where Airflow is
> installed) is:
> ```
> [ec2-user@ip-10-0-0-XXX print_date]$ date
> Mon Oct 23 11:24:06 UTC 2017
> ```
> but after 11:25:00, this job is still not scheduled accordingly. Could anyone
> help correct me if i'm wrong? Thanks a lot!
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)