* Mistral evaluates expressions under "on-xxx" clauses more than
once during the processing of a workflow. It's now been fixed by
storing crucial information about the result of those expressions
after it was first obtained in the DB.
* Added two boolean fields "has_next_tasks" and "error_handled" in
the TaskExecution class and the required migration. These fields
allow not to calculate expressions under "on-xxx" clauses many
times which leads to reducing execution time in case of heavy
expressions and/or their data contexts.
* Minor style changes.
Closes-Bug: #1824121
Change-Id: Ib236ba7a72d8e578f9c52460d2a7d8d4540f9c37
This removes the parameter insecure in the client creation as this
no longer exists in the client. It also changes the client class
to be called as other clients in openstack using sessions
Change-Id: I3cb7ed4255f8996b8bfd9a3e1edba6de50f4e492
Closes-Bug: #1800819
This action is not included in the mapping.json and it is required
to retrieve secrets from barbican in the workflows
Change-Id: I68f2a75a30cbafba1dc5cc2ca222483c7b92dca1
Closes-Bug: #1800820
This makes getting a root_execution_id possible without having to go
through filtering and querying the executions search.
Change-Id: Ia6c954e688589f69a7463f1b8e02244d029e8b7a
Changed from importing utils and calling it via utils.filter_utils
to a proper import utils.__init__.py didn't export it so the way it
was called probably worked for python 2 only.
This way is a more ubiquitous way of calling it.
Change-Id: Ie6a073dc286f0d8704c67f8295dfd76bce7897bb
Pass the auth context to the event publishers for integration with other OpenStack services.
Change-Id: Id0ee6780386f28e44e354ca36e4bacab87e96beb
Implements: blueprint mistral-execution-event-subscription
A not obvious point for users is the task does not retry after a
timeout is triggered. Added clarification in the retry section.
The documentation contains enough example with Jinja usage. Improved
only the create_vm workflow definition.
Added global publishing to the doc. It is brash copy-paste from
https://specs.openstack.org/openstack/mistral-specs/specs/pike/approved/advanced_publishing.html without mention of atomic publish.
Move Docker guides to the installation section.
Change-Id: I149b2e1dff7f86bd356f4dd2f758659469e6a4a8
Closes-Bug: #1789384
Closes-Bug: #1690156
Closes-Bug: #1779244
Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
In case of several engine instances, starting subworkflows not in the
same instance with parent task, could significantly smooth load between
engine instances. Furthermore, starting workflow is not always
a lightweight operation and we should try to make it as more 'atomic'
as possible.
Change-Id: I895bee811496f920b075880a6c438c53f7ecb2ca
Signed-off-by: Oleg Ovcharuk <vgvoleg@gmail.com>
* test_get_all_with_and_without_output failed sometimes failed on
Python 3.7 with a weird error coming from simplejson library:
"AttributeError: 'MagicMock' object has no attribute 'items'"
It seems like that the mock object used in the test got broken
magically sometimes after the first use. So splitting the test
into two solved the issue.
Change-Id: Ic2e0ad75b666dd4c258764018dd68d0ef0b032a8
Using default mutable parameter is bad.
Default parameters are evaluated only once
if you mutate it you will get unexpected results.
Since we don't mutate here the default paramter, make
sure it is unmutable.
Change-Id: Ib5c451a8c8cad7b6c9a009369c1c039563023368
Reply to address is useful when sending email from an unmonitored email
address and to give user a place to respond in order to contact us.
Add Reply-to as described in section 3.6.2 of RFC5222
https://tools.ietf.org/html/rfc5322#section-3.6.2
Change-Id: Ib6b2bdc130e4f9e5170eb88760d69c3e08d2a1c7
* "__task_execution" wasn't included in this case into the
expression data context so the function task() didn't work
properly
Change-Id: I3cacae90f9031d09a5e6d8153d728ddc01e1bb21
Closes-Bug: #1823875
* It allows to convert a profiler log into a convenient report
that has a general statistics about profile traces: total time,
maximum time, average time and number of occurrences.
Change-Id: I68ff2a6eb74f1f8b11cd7568dc27bcbc9430e8e1