Evaluate workflow names dynamically, so yaql or jinja expression
is allowed as sub-workflow name. Tasks names are not yet
dynamically evaluated.
Partially implements: blueprint mistral-dynamic-actions
Change-Id: Icfe591e27a4f45c2e3dcfa83512217f3b2122189
doc8 is a linter for documents and used in openstack-manuals. It is better to enforce
document linters for simple checking. This change is to add doc8 in tox file and fix
line too long in some files.
The current rules are as bellow:
- invalid rst format - D000
- lines should not be longer than 79 characters - D001
- no trailing whitespace - D002
- no tabulation for indentation - D003
- no carriage returns (use unix newlines) - D004
- no newline at end of file - D005
Change-Id: Ibba3f0e1c3f724563deb27bbf4f13a8040799687
Closes-bug: #1709571
When a workflow is paused by pause-before, the state will cascade down
to other subworkflows and up to parent workflow.
Change-Id: Ied178fe08f8308455bf05b3168635a3b69799cec
Closes-Bug: #1700196
When a workflow is paused/resumed, the state will cascade down to
subworkflows. When a subworkflow is paused, the parent workflow
will also be paused. When a subworkflow is resumed, the parent
workflow will only resume if there are no other subworkflows in
paused state.
Change-Id: I4ae8cfb08d17f326fc2ef0864376ed594cd0b3cf
Closes-Bug: #1700196
* Delete trust only after the last execution of
cron-trigger or event-trigger is completed.
Otherwise during workflow execution we get
an error "Unauthorized error: No such trust <id>"
Closes-Bug: #1708139
Change-Id: I42849d4f7c517f8a27e0d26c9cf0d98f9c7fb94a
After the namespace related patch, the version 22 of the database upgrade
script returns an error on PostgreSQL database indicating that the index
"name" does not exist on the table "workflow_definitions_v2". This patch
adds a check before executing the drop index operation.
Change-Id: I9a11f489b39c091d84bf7ff9c6689fa5e96c21ce
Closes-Bug: #1708296
Allow async action execution to be paused and resumed by
updating the action execution via API. When an action
execution is paused, the state transition will cascade up
to the task execution.
Implements: blueprint mistral-action-ex-pause-resume
Change-Id: I87233d27c46cfe86a23beb8dfdc96f77e58d24c1
It does not make sense to use MISTRAL_BRANCH as the default setting
for MISTRAL_DASHBOARD_BRANCH. When testing a gerrit patch manually
with devstack, it bombs out because it can't find the gerrit ref.
Change-Id: Ic8527fc95673337b200e10279ea9f244323e61fa
Allow adding many workflows with the same name.
The way this works is by adding the new workflows under another
namespace.
Notice that:
1. Namespaces are not part of the mistral DSL.
2. When executing a workflow, the namespace passes down to the
subworkflow.
3. When searching for the sub-workflow definition -
If no workflow was found in the given namespace, than the defualt
namespace will be used.
4. The default namespace is an empty string.
5. The namespace property or the workflow execution will be under
params
Partially-Implements: blueprint create-and-run-workflows-within-a-namespace
Change-Id: Id248ec5906a0899d188675d002b45f6249d36d90