Changes

Summary

  1. Generalize the "checkWorkerActiveWork"-code, place it in its own method and call it both in "hasActiveWork"-endpoint and "checkIfShouldShutdown"-scheduled-task. (details)
  2. 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)
  3. - 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)
  4. Identify the "maintenance"-mode upon requesting new assignments and show a relevant message. The worker will use the current logic of retrying automatically. (details)
Commit 5759dc2ece1b4a8e69959b1fe585cdb349f86e21 by Lampros Smyrnaios
Generalize the "checkWorkerActiveWork"-code, place it in its own method and call it both in "hasActiveWork"-endpoint and "checkIfShouldShutdown"-scheduled-task.
The file was modifiedsrc/main/java/eu/openaire/urls_worker/components/ScheduledTasks.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_worker/controllers/GeneralController.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_worker/services/FileStorageService.java (diff)
Commit ec25dc11f214c9427bd6964681ee31eac2499514 by Lampros Smyrnaios
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.
The file was modifiedsrc/main/java/eu/openaire/urls_worker/components/AssignmentsHandler.java (diff)
Commit 20d0d2618970b66c04b390deb286f2ce0ffbd33c by Lampros Smyrnaios
- 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.
- Code cleanup.
The file was modifiedsrc/main/java/eu/openaire/urls_worker/components/AssignmentsHandler.java (diff)
The file was modifiedsrc/main/java/eu/openaire/urls_worker/UrlsWorkerApplication.java (diff)
Commit 8faeb49edf874937a7527fad4739ca8955eb987d by Lampros Smyrnaios
Identify the "maintenance"-mode upon requesting new assignments and show a relevant message. The worker will use the current logic of retrying automatically.
The file was modifiedsrc/main/java/eu/openaire/urls_worker/components/AssignmentsHandler.java (diff)