Skip to content

Handle nil process in heartbeat#716

Merged
rosa merged 1 commit intomainfrom
fix-nil-heartbeat
Feb 19, 2026
Merged

Handle nil process in heartbeat#716
rosa merged 1 commit intomainfrom
fix-nil-heartbeat

Conversation

@rosa
Copy link
Member

@rosa rosa commented Feb 19, 2026

When a process record is pruned from the database by another supervisor, the heartbeat rescues RecordNotFound and sets the process to nil to trigger re-registration. But the heartbeat timer can fire again before re-registration completes, calling heartbeat on nil.

Use safe navigation to make the heartbeat a no-op when the process is nil.

Fixes #693

When a process record is pruned from the database by another
supervisor, the heartbeat rescues RecordNotFound and sets process to
nil to trigger re-registration. But the heartbeat timer can fire again
before re-registration completes, calling heartbeat on nil.

Use safe navigation to make the heartbeat a no-op when process is nil.

Fixes #693

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rosa rosa merged commit 1017e0a into main Feb 19, 2026
252 of 256 checks passed
@rosa rosa deleted the fix-nil-heartbeat branch February 19, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NoMethodError: undefined method 'heartbeat' for nil in Solid Queue heartbeat process

1 participant

Comments