uranusjr commented on code in PR #66586:
URL: https://github.com/apache/airflow/pull/66586#discussion_r3217522884
##########
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:
Is this code path not supposed to be hit when the config is enabled? It
feels like a bad idea to emit this warning all the time.
--
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]