v2026.06.3

This commit is contained in:
brusnitsyn
2026-06-14 22:51:46 +09:00
parent b5d1f61a82
commit 3fb2053705
6 changed files with 603 additions and 21 deletions

View File

@@ -494,7 +494,7 @@ class MigrationJobQueue:
def _materialize_due_schedules(self):
now = datetime.now()
grace_cutoff = now - timedelta(seconds=Config.SCHEDULE_GRACE_SECONDS)
grace_cutoff = now - timedelta(seconds=max(Config.SCHEDULE_GRACE_SECONDS, Config.QUEUE_POLL_SECONDS))
with self._get_engine().connect() as conn:
due_rows = conn.execute(self._text(f"""
SELECT *