Lee-W commented on code in PR #66699:
URL: https://github.com/apache/airflow/pull/66699#discussion_r3263972148
##########
task-sdk/src/airflow/sdk/execution_time/context.py:
##########
@@ -108,6 +109,11 @@
log = structlog.get_logger(logger_name="task")
+#: Pass as ``retention`` to ``task_state.set()`` to store a key that never
expires,
+#: regardless of the global ``[state_store] default_retention_days`` config.
+#: Example: ``context["task_state"].set("job_id", job_id,
retention=NEVER_EXPIRE)``
+NEVER_EXPIRE: timedelta = timedelta.max
Review Comment:
Why do we need `#: `? I guess this is from Claude (encountered it for a few
times...)
--
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]