| 1 |
Replicating Workflows with Mistral |
| 2 |
================================== |
| 3 |
|
| 4 |
The new command line switch '-s' will allow the operator to replicate / clone |
| 5 |
an existing workflow execution based on its ID. Once id is given mistral will |
| 6 |
create a new workflow execution based on the parameters of the first, which |
| 7 |
will provide a simple approach to spawning a number of workflow executions |
| 8 |
without having to specify inputs or parameters. Otherwise you can override |
| 9 |
some of the parameters (e.g. some of the input variables) |
| 10 |
|
| 11 |
Basic Usage |
| 12 |
----------- |
| 13 |
|
| 14 |
From the command line the operator will issue the following. The first step |
| 15 |
would be to list the current executions, which is done with "execution-list". |
| 16 |
The following step is to take the listed execution id and pass it to the source |
| 17 |
execution switch "-s". |
| 18 |
|
| 19 |
.. code-block:: shell |
| 20 |
|
| 21 |
mistral execution-list |
| 22 |
|
| 23 |
mistral execution-create -s <execution id> |
| 24 |
|
| 25 |
Once the workflow execution is selected and the replicate command used you |
| 26 |
should see a newly created workflow execution based on an existing one with |
| 27 |
a new execution id. |
| 28 |
|
| 29 |
.. code-block:: shell |
| 30 |
|
| 31 |
mistral execution-create -s 123e4567-e89b-12d3-a456-426655440000 |
| 32 |
|
| 33 |
+--------------------+---------------------------------------+ |
| 34 |
| Field | Value | |
| 35 |
+--------------------+---------------------------------------+ |
| 36 |
| ID | 123e4567-e89b-12d3-a456-77046883182e | |
| 37 |
| | | |
| 38 |
| Workflow ID | 123e4567-e89b-12d3-a456-45411dfa33af | |
| 39 |
| | | |
| 40 |
| Workflow name | some.workflow.name.goes.here | |
| 41 |
| | | |
| 42 |
| Workflow namespace | | |
| 43 |
| | | |
| 44 |
| Description | | |
| 45 |
| | | |
| 46 |
| Task Execution ID | <none> | |
| 47 |
| | | |
| 48 |
| State | RUNNING | |
| 49 |
| | | |
| 50 |
| State info | None | |
| 51 |
| | | |
| 52 |
| Created at | 2018-01-25 18:41:07 | |
| 53 |
| | | |
| 54 |
| Updated at | 2018-01-25 18:41:07 | |
| 55 |
+--------------------+---------------------------------------+ |