Skip to content

Multi-Node Safety & Concurrency Tests #12

@niteshpurohit

Description

@niteshpurohit

Feature Request

Description

Add concurrency and multi-node tests proving at-most-once dispatch semantics.

Use Case

Confirms correct behavior under contention and race conditions.

Proposed Solution

  • Use FakeRedis and Thread fan-out to simulate two+ coordinators.
  • Verify only one dispatch per (key, fire_time) even under contention.
  • Add timing fuzzers and randomized schedules to catch edge cases.
  • Run as part of CI matrix (Ruby 3.2/3.3; Rails 7.2/8.0/edge).

Alternatives Considered

Manual testing — insufficient for regressions.

Additional Context

Collect timings to ensure the loop doesn't drift under load.

Checklist

  • I have searched for a similar feature request and didn't find any duplicates.
  • I have included all the required information.
  • I have tagged the issue with the label "enhancement".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions