hussein-awala commented on issue #29442:
URL: https://github.com/apache/airflow/issues/29442#issuecomment-1425031828

   The callback is executed when the task/run finishes, and it is executed by 
the scheduler, you will find this log in the scheduler log files:
   ```
   [2023-02-10T00:01:08.696+0000] {logging_mixin.py:151} INFO - 
[2023-02-10T00:01:08.696+0000] {test_dag.py:19} INFO - Minimal example - 
failure callback with context: {'conf': 
<airflow.configuration.AirflowConfigParser object at 0x7f2c1c98edd0>, 'dag': 
<DAG: INT_tableau_others_recommendation_classifications>, 'dag_run': <DagRun 
INT_tableau_others_recommendation_classifications @ 2023-02-09 00:00:00+00:00: 
scheduled__2023-02-09T00:00:00+00:00, state:failed, queued_at: 2023-02-10 
00:00:00.600499+00:00. externally triggered: False>, 'data_interval_end': 
DateTime(2023, 2, 10, 0, 0, 0, tzinfo=Timezone('UTC')), 'data_interval_start': 
DateTime(2023, 2, 9, 0, 0, 0, tzinfo=Timezone('UTC')), 'ds': '2023-02-09', 
'ds_nodash': '20230209', 'execution_date': DateTime(2023, 2, 9, 0, 0, 0, 
tzinfo=Timezone('UTC')), 'expanded_ti_count': None, 'inlets': [], 
'logical_date': DateTime(2023, 2, 9, 0, 0, 0, tzinfo=Timezone('UTC')), 
'macros': <module 'airflow.macros' from '/opt/airflow/airflow/macros/__init_
 _.py'>, 'next_ds': '2023-02-10', 'next_ds_nodash': '20230210', 
'next_execution_date': DateTime(2023, 2, 10, 0, 0, 0, tzinfo=Timezone('UTC')), 
'outlets': [], 'params': {}, 'prev_data_interval_start_success': None, 
'prev_data_interval_end_success': None, 'prev_ds': '2023-02-08', 
'prev_ds_nodash': '20230208', 'prev_execution_date': DateTime(2023, 2, 8, 0, 0, 
0, tzinfo=Timezone('UTC')), 'prev_execution_date_success': None, 
'prev_start_date_success': None, 'run_id': 
'scheduled__2023-02-09T00:00:00+00:00', 'task': <Task(BashOperator): 
sleep_a_while>, 'task_instance': <TaskInstance: 
INT_tableau_others_recommendation_classifications.sleep_a_while 
scheduled__2023-02-09T00:00:00+00:00 [skipped]>, 'task_instance_key_str': 
'INT_tableau_others_recommendation_classifications__sleep_a_while__20230209', 
'test_mode': False, 'ti': <TaskInstance: 
INT_tableau_others_recommendation_classifications.sleep_a_while 
scheduled__2023-02-09T00:00:00+00:00 [skipped]>, 'tomorrow_ds': '2023-02-10', 
'tomorrow_ds_no
 dash': '20230210', 'triggering_dataset_events': <Proxy at 0x7f2bf9eea2d0 with 
factory <function 
TaskInstance.get_template_context.<locals>.get_triggering_events at 
0x7f2c14fa0290>>, 'ts': '2023-02-09T00:00:00+00:00', 'ts_nodash': 
'20230209T000000', 'ts_nodash_with_tz': '20230209T000000+0000', 'var': {'json': 
None, 'value': None}, 'conn': None, 'yesterday_ds': '2023-02-08', 
'yesterday_ds_nodash': '20230208', 'reason': 'timed_out'}
   ```
   You can find this log in the path `$AIRFLOW_HOME/logs/scheduler`, and for 
cloud composer you will find it on gcs `gs://<BUCKET>/logs/scheduler`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to