ashb commented on code in PR #66699:
URL: https://github.com/apache/airflow/pull/66699#discussion_r3240676096
##########
airflow-core/src/airflow/state/metastore.py:
##########
@@ -250,7 +240,8 @@ def _set_task_state(
if dag_run_id is None:
raise ValueError(f"No DagRun found for dag_id={scope.dag_id!r}
run_id={scope.run_id!r}")
now = timezone.utcnow()
- expires_at =
_compute_expires_at_from_provided_retention_days(retention_days, now)
+ if expires_at is None:
+ expires_at = _compute_expires_at(now)
Review Comment:
Hmmmm, this might mean it's impossible to have non-expiring state?
--
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]