Skip to content

[pull] develop from smartcontractkit:develop - #628

Merged
pull[bot] merged 1 commit into
bit-cook:developfrom
smartcontractkit:develop
Sep 22, 2026
Merged

pull[bot] merged 1 commit into
bit-cook:developfrom
smartcontractkit:develop

Conversation

@pull

@pull pull Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

The single-instance check was broken in two ways: it was global, so a
shard_assignment job could not run alongside a settings job, and the
activeJobID pointer was never stored, so the 'already active' error
could never actually fire.

Track the active job ID per config type (settings / shard_assignment)
in a sync.Map. ServicesForSpec validates the config type and claims the
slot atomically via LoadOrStore, so one settings job and one
shard_assignment job may coexist while a second job of the same type is
rejected. OnDeleteJob frees the slot only if it is held by the deleted
job's ID, so deleting a rejected duplicate cannot evict the active job.
@pull pull Bot locked and limited conversation to collaborators Sep 22, 2026
@pull pull Bot added the ⤵️ pull label Sep 22, 2026
@pull
pull Bot merged commit cbbec9d into bit-cook:develop Sep 22, 2026
10 of 18 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant