apps/api/src/routes/schedules.ts
When schedule patching commits the database change and later fails while deleting the previous QStash schedule, the old schedule can remain active while the new one is removed.
Treat previous-schedule cleanup as non-fatal or persist failed cleanup for retry.
Linear issue: NOT-52
apps/api/src/routes/schedules.tsWhen schedule patching commits the database change and later fails while deleting the previous QStash schedule, the old schedule can remain active while the new one is removed.
Treat previous-schedule cleanup as non-fatal or persist failed cleanup for retry.
Linear issue: NOT-52