Skip to content

Commit 969f0f0

Browse files
committed
Added tasks option to execution rerun
1 parent 7225449 commit 969f0f0

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 2.0.2
4+
5+
* Added tasks option to `executions_re_run` to support re-running the execution from specific task.
6+
37
## 2.0.1
48

59
* Temporarily re-add Python 2 support until StackStorm v3.3 is EOL.

actions/executions_re_run.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ def format_result(item):
1313

1414

1515
class St2ExecutionsReRunAction(St2BaseAction):
16-
def run(self, id, parameters=None):
16+
def run(self, id, parameters=None, tasks=None):
1717
parameters = parameters or {}
1818
result = self.client.liveactions.re_run(execution_id=id,
19-
parameters=parameters)
19+
parameters=parameters,
20+
tasks=tasks)
2021
result = format_result(item=result)
2122
return result

actions/executions_re_run.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ parameters:
1313
type: "object"
1414
description: "Parameter overrides"
1515
required: false
16+
tasks:
17+
type: "array"
18+
description: "List of tasks to re-run"
19+
required: false

pack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
ref: st2
33
name: st2
44
description: StackStorm utility actions and aliases
5-
version: 2.0.1
5+
version: 2.0.2
66
python_versions:
77
# StackStorm v3.3 on Xenial still uses python 2.7
88
# and does not backtrack to find older supported versions,

0 commit comments

Comments
 (0)