open-swe/scripts
Johannes du Plessis 918641d3e2
fix: purge expired thread_wakeup crons (#1656)
* fix: purge expired thread_wakeup crons

One-shot wakeup crons set an end_time that stops re-firing but the cron
row is never deleted, so dead rows accumulate (86 in prod). Add a purge
that deletes thread_wakeup crons past their end_time, called
opportunistically before scheduling a new wakeup, plus a one-time
backfill script. Conservative: matches only kind=thread_wakeup with a
past end_time.

* chore: retrigger Open SWE review

---------

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
(cherry picked from commit 9e5a1924ef306269322c31342a1831e57831cfee)
2026-07-02 19:23:27 -04:00
..
__init__.py fix: Add scripts for getting usage, fix dual committing (#1131) 2026-03-25 13:39:33 -07:00
check_pr_merge_status.py fix: Add scripts for getting usage, fix dual committing (#1131) 2026-03-25 13:39:33 -07:00
create_sandbox_snapshot.py feat: move github workflows to gh cli (#1238) 2026-05-04 18:03:53 -07:00
list_snapshots.py feat: migrate LangSmith sandbox creation to snapshot API (#1201) 2026-04-21 12:17:19 -07:00
purge_wakeup_crons.py fix: purge expired thread_wakeup crons (#1656) 2026-07-02 19:23:27 -04:00