Skip to content

Duplicate Spawning of Jobs #51

@thevaibhav-dixit

Description

@thevaibhav-dixit

Due to concurrent polling there were duplicate jobs being spawned. This behaviour is caused because there is no row locking mechanism in place. So when multiple instance ran concurrently they could end up selecting the same messages leading to duplicates
this is the query which i have identified is causing the issue.
Potential Fix:
Use FOR UPDATE to lock the selected rows to prevent concurrent access.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions