amoghrajesh commented on code in PR #66699:
URL: https://github.com/apache/airflow/pull/66699#discussion_r3264116604
##########
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:
We do not need it, but it matters to sphinx apparently and `NEVER_EXPIRE` is
public API too.
--
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]