Skip to content

Using a single repeating job could make things easier #13

@vigliag

Description

@vigliag

Unni is currently creating a new Job every time a user subscribes.
A different approach could be using a single repeating job, scheduled to run every 10 minutes for example, which takes from the database the list of users who need to be notified and does so.
This would make it easier to restart the bot (there's no queue to refill) and scales better.
Consider something like this: https://github.com/vigliag/vijournalbot/blob/master/main.py#L188

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