Object-Oriented Programming · OpenAI · Hard
Hard · Design · Queue · Simulation · Hints Design a task management queue that handles retries and a dead‑letter collection. A pool of tasks, each identified by a unique integer, progresses through states: READY, ACQUIRED, COMPLETED, and DEAD. A worker can acquire a task (locking it for a limited time lease), finish it successfully, or abandon it after a failure. Expired leases and a configurable attempt limit govern when a task retries or is permanently sent to the…
Checking your access…