amoghrajesh commented on code in PR #66586:
URL: https://github.com/apache/airflow/pull/66586#discussion_r3217664724


##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -1431,6 +1431,10 @@ def _handle_current_task_success(
 
     task_outlets = list(_build_asset_profiles(ti.task.outlets))
     outlet_events = list(_serialize_outlet_events(context["outlet_events"]))
+
+    if conf.getboolean("state_store", "clear_on_success"):
+        log.warning("Task state will be cleared by the server because 
clear_on_success is enabled.")

Review Comment:
   The code path to clear the task state on success happens when the config is 
set (but happens on server side), if there's no log here, there is no way for 
the task logs to know if the clearing happened or not.



-- 
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