finished state added

master
Martin Polanka 8 years ago
parent 4270d38010
commit bce7ff89d4

@ -47,7 +47,14 @@ Commands:
- **progress** - notice about evaluation progress. Requires 2 or 4 arguments: - **progress** - notice about evaluation progress. Requires 2 or 4 arguments:
- `job_id` - identifier of current job - `job_id` - identifier of current job
- `state` - what is happening now. One of "DOWNLOADED" (submission successfuly fetched), "FAILED" (something bad happened and job was not executed at all), "UPLOADED" (results are uploaded to fileserver), "STARTED" (evaluation started), "ENDED" (evaluation is finnished) and "TASK" (task state changed - see below) - `state` - what is happening now.
- DOWNLOADED - submission successfuly fetched from fileserver
- FAILED - something bad happened and job was not executed at all
- UPLOADED - results are uploaded to fileserver
- STARTED - evaluation of tasks started
- ENDED - evaluation of tasks is finnished
- FINISHED - whole execution is finished and worker ready for another job execution
- TASK - task state changed - see below
- `task_id` - only present for "TASK" state - identifier of task in current job - `task_id` - only present for "TASK" state - identifier of task in current job
- `task_state` - only present for "TASK" state - result of task evaluation. One of "COMPLETED", "FAILED" and "SKIPPED". - `task_state` - only present for "TASK" state - result of task evaluation. One of "COMPLETED", "FAILED" and "SKIPPED".
- COMPLETED - task was successfully executed without any error, subsequent task will be executed - COMPLETED - task was successfully executed without any error, subsequent task will be executed
@ -195,7 +202,14 @@ When monitor receives "progress" message from broker there are two options:
Message JSON format is dictionary with keys: Message JSON format is dictionary with keys:
- **command** - type of progress. One of "STARTED" (evaluation started), "FAILED" (something bad happened and job was not executed at all), "DOWNLOADED" (submission source downloaded), "TASK" (progress on one of the tasks), "UPLOADED" (results are uploaded), "ENDED" (evaluation ended) - **command** - type of progress.
- DOWNLOADED - submission successfuly fetched from fileserver
- FAILED - something bad happened and job was not executed at all
- UPLOADED - results are uploaded to fileserver
- STARTED - evaluation of tasks started
- ENDED - evaluation of tasks is finnished
- FINISHED - whole execution is finished and worker ready for another job execution
- TASK - task state changed - see below
- **task_id** - id of currently evaluated task. Present only if **command** is "TASK". - **task_id** - id of currently evaluated task. Present only if **command** is "TASK".
- **task_state** - state of task with id **task_id**. Present only if **command** is "TASK". Value is one of "COMPLETED", "FAILED" and "SKIPPED". - **task_state** - state of task with id **task_id**. Present only if **command** is "TASK". Value is one of "COMPLETED", "FAILED" and "SKIPPED".
- COMPLETED - task was successfully executed without any error, subsequent task will be executed - COMPLETED - task was successfully executed without any error, subsequent task will be executed

Loading…
Cancel
Save