Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 2.0.2

* Added tasks option to `executions_re_run` to support re-running the execution from specific task.

## 2.0.1

* Temporarily re-add Python 2 support until StackStorm v3.3 is EOL.
Expand Down
5 changes: 3 additions & 2 deletions actions/executions_re_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ def format_result(item):


class St2ExecutionsReRunAction(St2BaseAction):
def run(self, id, parameters=None):
def run(self, id, parameters=None, tasks=None):
parameters = parameters or {}
result = self.client.liveactions.re_run(execution_id=id,
parameters=parameters)
parameters=parameters,
tasks=tasks)
result = format_result(item=result)
return result
4 changes: 4 additions & 0 deletions actions/executions_re_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ parameters:
type: "object"
description: "Parameter overrides"
required: false
tasks:
type: "array"
description: "List of tasks to re-run"
required: false
2 changes: 1 addition & 1 deletion pack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ref: st2
name: st2
description: StackStorm utility actions and aliases
version: 2.0.1
version: 2.0.2
python_versions:
# StackStorm v3.3 on Xenial still uses python 2.7
# and does not backtrack to find older supported versions,
Expand Down
Loading