Skip to content

rework state-saving #27

@rjbs

Description

@rjbs

From #26:

So we actually want send_reminder to do the removal of the item, but that means that check-reminders might run twice and find the same reminder in the queue, not yet removed by send_reminder, which is still waiting. So we probably want the yield to send_reminder-then-save-state to mark the job as taken in such a way that it won't be saved to state, but will prevent second-enqueueing of the send-reminder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions