Skip to content

[Reliability] Revisit adding unique action solution for better concurrency handling #1317

Description

@kalessil

Currently, \ActionScheduler_DBStore::build_insert_sql adds unique actions using a select followed by an insert, which is not an atomic operation. In high-concurrency environments, this gap can result in duplicate unique actions.

We should consider implementing a versioned, nullable unique ID column to prevent duplicates at the atomic level.
Making the column nullable allows (?) us to leave it empty for non-unique actions, what is performance-friendly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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