You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jobs@airflow.apache.org by GitBox <gi...@apache.org> on 2026/06/21 10:20:21 UTC
[GH] (airflow/fix/state-store-cleanup-ignores-default-retention-days): Workflow run "Tests (AMD)" failed!
The GitHub Actions job "Tests (AMD)" on airflow.git/fix/state-store-cleanup-ignores-default-retention-days has failed.
Run started by GitHub user kalluripradeep (triggered by kalluripradeep).
Head commit for run:
e948abb9b84f156beea79829ea2eb5f4b712fd26 / Pradeep Kalluri <ka...@gmail.com>
fix: MetastoreBackend.cleanup() ignores default_retention_days for null expires_at rows
Task state rows written by workers always have expires_at=NULL (the default).
cleanup() only deleted rows where expires_at < now(), so the configured
default_retention_days (default: 30) was silently ignored — those rows
accumulated forever.
Fix: add a second deletion pass that removes rows where expires_at IS NULL
and updated_at < now - timedelta(days=default_retention_days). The pass is
skipped when default_retention_days=0 (keep indefinitely).
Also fix _summary_dry_run() and the CLI dry-run output to report both
explicitly-expired and default-retention-stale rows.
Fixes: cleanup() in MetastoreBackend ignoring [state_store] default_retention_days
Report URL: https://github.com/apache/airflow/actions/runs/27900273536
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscribe@airflow.apache.org
For additional commands, e-mail: jobs-help@airflow.apache.org