Skip to content

Conversation

@weetster
Copy link

@weetster weetster commented Nov 13, 2025

This fix removes a call to result_handler.terminate() to ensure that the ResultHandler thread stays running and processes any task results in its queue before shutting down. The thread will terminate itself naturally after its queue is emptied.

I've added a unit test to exercise this behaviour during pool shutdown.

This fix is required for the integration tests in the following Celery pull request to pass successfully: celery/celery#9986

Fixes #434

@Nusnus Nusnus self-requested a review November 14, 2025 00:21
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.

Result handler thread terminates before processing results from pool workers during shutdown

1 participant