Merge "add docs for states. add docs explaining what each state mean."

This commit is contained in:
Zuul 2018-07-12 17:30:17 +00:00 committed by Gerrit Code Review
commit 31e97e2c6b
1 changed files with 20 additions and 1 deletions

View File

@ -15,15 +15,34 @@
"""Valid task and workflow states."""
# TODO(rakhmerov): need docs explaining what each state means.
IDLE = 'IDLE'
"""Task is not started yet."""
WAITING = 'WAITING'
"""
Task execution object has been created, but it is not ready to start because
some preconditions are not met.
NOTE:
The task may never run just because some of the preconditions may never be met.
"""
RUNNING = 'RUNNING'
"""Task, action or workflow is currently being executed."""
RUNNING_DELAYED = 'DELAYED'
"""Task is in the running state but temporarily delayed."""
PAUSED = 'PAUSED'
"""Task, action or workflow has been paused."""
SUCCESS = 'SUCCESS'
"""Task, action or workflow has finished successfully."""
CANCELLED = 'CANCELLED'
"""Task, action or workflow has been cancelled."""
ERROR = 'ERROR'
"""Task, action or workflow has finished with an error."""
_ALL = [
IDLE,