For unknown reason only the first value defined in the const block had
type WorkerState, all subsequent definitions had type string.
Change-Id: I1320a8a94525f08f37e14b79188bcfdac0048b0e
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Reviewed-on: https://mcdsrvbld02.digital.local/review/49430
Reviewed-by: Maciej Wereski <m.wereski@partner.samsung.com>
Tested-by: Maciej Wereski <m.wereski@partner.samsung.com>
// MAINTENANCE - Worker will not be assigned any Jobs.
MAINTENANCE WorkerState = "MAINTENANCE"
// IDLE - Worker is waiting for the Job.
- IDLE = "IDLE"
+ IDLE WorkerState = "IDLE"
// RUN - Job is currently being executed on the Worker.
- RUN = "RUNNING"
+ RUN WorkerState = "RUNNING"
// FAIL - An error occured, reported by the Worker itself or the Server.
- FAIL = "FAILED"
+ FAIL WorkerState = "FAILED"
)
// Capabilities describe the features provided by the Worker and required by the Request.