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.

DAG: xuehua_DAG

schedule: 00 18 * * *


xuehua_DAG

Toggle wrap
 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
from airflow.operators.bash_operator import BashOperator
from airflow import DAG
from datetime import datetime, timedelta



args = {
    'owner': 'lidayuan',
    'start_date': datetime(2021, 8, 3),
    'email': 'gaoqiang@lenztechretail.com',
    'email_on_failure': False,
    'email_on_retry': False,
    'retries': 3,
    'retry_delay': timedelta(minutes=1),
}

dag = DAG(
    dag_id='xuehua_DAG',
    default_args=args,
    schedule_interval='00 18 * * *',
    dagrun_timeout=timedelta(minutes=200))



xuehua_task=BashOperator(task_id="xuehua_task",bash_command='cd /usr/local/airflow/dags/bi_etl/bi_project_airflow/project_common/;nohup python xuehua_utils/daily_photo_stats.py &',dag=dag)