GitHub user assadali007 created a discussion: how this pythonoperator task fail
??
i run this code manually trigger i follow the code example in the picture said
if no value is set it will fail i provided no value i not fail the execution is
None my question how it fail ??
`dag = DAG(
dag_id='chapter4_print_context',
start_date = airflow.utils.dates.days_ago(3),
schedule_interval ="@daily"
)
def _print_context(execution_date,**context):
print(execution_date)
print_context = PythonOperator(
task_id ="print_context",
python_callable=_print_context,
dag=dag
)`
<img width="1075" height="340" alt="Screen Shot 2026-01-14 at 11 10 55 AM"
src="https://github.com/user-attachments/assets/92a9c50c-ce23-47fb-b146-e62eea2a5303"
/>
GitHub link: https://github.com/apache/airflow/discussions/60503
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]