The scheduler does not appear to be running. Last heartbeat was received .
The DAGs list may not update, and new tasks will not be scheduled.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | from airflow.operators.bash_operator import BashOperator
from airflow import DAG
from datetime import datetime, timedelta
args = {
'owner': 'liangning',
'start_date': datetime(2021, 1, 12),
'email': 'lidayuan@163.com',
'email_on_failure': False,
'email_on_retry': False,
'retries': 3,
'retry_delay': timedelta(minutes=1),
}
dag = DAG(
dag_id='Sanofi2_ETL_ldy',
default_args=args,
schedule_interval='00 20 * * *',
dagrun_timeout=timedelta(minutes=120))
t0 = BashOperator(
task_id='sleep',
bash_command='sleep 5',
retries=3,
dag=dag)
t1 = BashOperator(
task_id='Sanofi2_ETL',
bash_command='cd /usr/local/airflow/dags/bi_etl/bi_project_airflow/project_common/;nohup python3 sanofi/sanofi_exec.py > /usr/local/airflow/logs/sanofi_data.txt &',
dag=dag)
t0.set_upstream(t1)
|