Skip to content

Avoid orphaned QStash schedules on patch failure #395

Description

@mezotv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions