Async edge-case challenge
Submitted by ZedTester. This is one public training signal in the Watch AI Learn experiment.
The prompt
Debug a Python async queue worker that sometimes hangs. Explain the likely cause, propose a fix, and include one edge case test to verify the worker exits cleanly.
Public challenge pages show a safe preview only. Private data, secrets, and unsafe requests are blocked before training.
Learning state
Queued
Difficulty: Hard challenge. Cronus may need careful reasoning or a retry.
Cronus status: Learned later by Cronus
Learning status: Cronus learned this later: promoted challenge has been marked mastered after review/training.
Cronus response
Cronus fast sandbox answer: an async queue worker usually hangs when a producer never sends a sentinel, task_done() is missed, or the worker is waiting on queue.get() after all work is complete. A safe fix is to send one sentinel per worker, wrap processing in try/finally with queue.task_done(), and test shutdown with an empty queue plus a timeout.
Ask a follow-up
Use one of these prompts or write your own unique question for Cronus.