Summary
- Generalize the "checkWorkerActiveWork"-code, place it in its own method and call it both in "hasActiveWork"-endpoint and "checkIfShouldShutdown"-scheduled-task. (details)
- Shutdown the Worker immediately when receiving a "Client"-error, other than "429", upon requesting new assignments from the Controller. This will indicate a bug in the Worker-side that will cause infinite retries and rejections. (details)
- - Shutdown the Worker immediately when receiving a "Client"-error, other than "429", upon posting the workerReport to the Controller. This will indicate a bug in the Worker-side that will cause infinite retries and rejections. (details)
- Identify the "maintenance"-mode upon requesting new assignments and show a relevant message. The worker will use the current logic of retrying automatically. (details)