uranusjr commented on code in PR #32000:
URL: https://github.com/apache/airflow/pull/32000#discussion_r1252836367
##########
airflow/models/dag.py:
##########
@@ -3874,10 +3902,14 @@ def _run_task(ti: TaskInstance, session):
try:
ti._run_raw_task(session=session)
session.flush()
- log.info("%s ran successfully!", ti.task_id)
+ if ti.state == TaskInstanceState.DEFERRED:
+ log.info("%s has deferred", ti.task_id)
+ else:
+ log.info("%s ran successfully!", ti.task_id)
except AirflowSkipException:
log.info("Task Skipped, continuing")
log.info("*****************************************************")
+ return ti
Review Comment:
Why does this need to be changed? Isn’t this `ti` the same as the `ti`
passed in as argument?
--
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]