Skip to content

Commit 631dc03

Browse files
committed
Document STOPPING state and add state diagram
1 parent a93403b commit 631dc03

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,14 @@ Jobs have a `state` field which can have one of the following values:
189189
* `NEW` (has been created, waiting for a worker process to run the next task)
190190
* `READY` (has run a task before, awaiting a worker process to run the next task)
191191
* `PROCESSING` (a task is currently being processed by a worker)
192+
* `STOPPING` (the worker process has received a signal from the OS requesting it to exit)
192193
* `COMPLETED` (all job tasks have completed successfully)
193194
* `FAILED` (a job task failed)
194195

196+
#### State diagram
197+
198+
![state diagram](states.png)
199+
195200
### API
196201

197202
#### Model methods

states.png

99.1 KB
Loading

0 commit comments

Comments
 (0)