from operators.wecom_operator import failure_callback_wecom
args={
'on_failure_callback': failure_callback_wecom,
'owner': 'test',
'email': ['test@test.com'],
'email_on_failure': True,
'email_on_retry': False,
'retries': 0,
}
with DAG(
dag_id='test',
default_args=args,
schedule_interval='0 * * * * *',
start_date=days_ago(1),
tags=['test'],
) as dag:
task1 = PythonOperator(
task_id = 'test',
python_callable = app,
op_kwargs = {'app': 'test'},
dag = dag,
)
-
Notifications
You must be signed in to change notification settings - Fork 0
rhizoma-paridis/airflow_plguins
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published