Skip to content

Fix dispatcher crash on gevent LoopExit exceptions#2106

Closed
deepssin wants to merge 1 commit intoceph:mainfrom
deepssin:fix/gevent-loopexit-dispatcher-crash
Closed

Fix dispatcher crash on gevent LoopExit exceptions#2106
deepssin wants to merge 1 commit intoceph:mainfrom
deepssin:fix/gevent-loopexit-dispatcher-crash

Conversation

@deepssin
Copy link
Copy Markdown
Contributor

  • Handle gevent LoopExit exceptions gracefully to prevent dispatcher crashes.
  • Add exception handling in main loop and lock_machines() call, with loop exit counter (max 10) to prevent infinite restarts.
  • Isolate child processes using start_new_session=True so job supervisors continue running independently if dispatcher encounters exceptions.

@deepssin deepssin requested review from kshtsk and zmc November 10, 2025 14:25
@deepssin deepssin requested a review from a team as a code owner November 10, 2025 14:25
@deepssin deepssin requested review from amathuria and removed request for a team November 10, 2025 14:25
Handle gevent LoopExit exceptions gracefully to prevent dispatcher
crashes. Add exception handling in main loop and lock_machines() call,
with loop exit counter (max 10) to prevent infinite restarts. Isolate
child processes using start_new_session=True so job supervisors
continue running independently if dispatcher encounters exceptions.

Signed-off-by: deepssin <deepssin@redhat.com>
@deepssin deepssin force-pushed the fix/gevent-loopexit-dispatcher-crash branch from bd84c13 to 543ebd0 Compare November 11, 2025 13:17
@deepssin deepssin closed this Nov 11, 2025
@deepssin
Copy link
Copy Markdown
Contributor Author

dup of #2107

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.

1 participant