DAG = DAG(
dag_id='failcallback_example_dag',
start_date=datetime(2018, 9, 30),
schedule_interval='@once',
on_failure_callback=on_failure_callback,
)
But in the Cloud Composer, I got this error:
__init__() got an unexpected keyword argument 'on_failure_callback'
When I moved it to each task's configuration like the following, it worked though:
task0 = PythonOperator(
task_id='task0',
python_callable=task0_python_callable,
on_failure_callback=on_failure_callback,
provide_context=True,
dag=DAG
)
Cloud Composer doesn't support on_failure_callback in DAG definition?
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsub...@googlegroups.com.
To post to this group, send email to cloud-composer-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/44c5eb98-e39a-439c-bbc5-faa30bf960ea%40googlegroups.com.