Skip to content
Merged
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
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ Changed
* Improve the st2-self-check script to echo to stderr and exit if it isn't run with a
ST2_AUTH_TOKEN or ST2_API_KEY environment variable. (improvement) #5068

* Added timeout parameter for packs.install action to help with long running installs that exceed the
default timeout of 600 sec which is defined by the python_script action runner (improvement) #5084

Contributed by @hnanchahal

Fixed
~~~~~~~~~
* Fix nginx buffering long polling stream to client. Instead of waiting for closed connection
Expand Down
6 changes: 6 additions & 0 deletions contrib/packs/actions/install.meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@
description: "Set to True to skip pack dependency installations."
required: false
default: false
timeout:
default: 600
required: false
description: Action timeout in seconds. Action will get killed if it doesn't finish in timeout
type: integer

5 changes: 5 additions & 0 deletions contrib/packs/actions/setup_virtualenv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@
description: "Optional environment variables"
required: false
default: null
timeout:
default: 600
required: false
description: Action timeout in seconds. Action will get killed if it doesn't finish in timeout
type: integer
2 changes: 2 additions & 0 deletions contrib/packs/actions/workflows/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ input:
- force
- python3
- skip_dependencies
- timeout

vars:
- packs_list: null
Expand Down Expand Up @@ -98,6 +99,7 @@ tasks:
packs: <% ctx().packs_list %>
env: <% ctx().env %>
python3: <% ctx().python3 %>
timeout: <% ctx().timeout %>
next:
- when: <% succeeded() %>
do: get_pack_warnings
Expand Down