Skip to content

Commit 24ad843

Browse files
authored
Merge pull request #5084 from hnanchahal/pack-install-timeout
Add option to override Pack install timeout
2 parents 963f97f + 72c1030 commit 24ad843

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ Changed
1515
* Improve the st2-self-check script to echo to stderr and exit if it isn't run with a
1616
ST2_AUTH_TOKEN or ST2_API_KEY environment variable. (improvement) #5068
1717

18+
* Added timeout parameter for packs.install action to help with long running installs that exceed the
19+
default timeout of 600 sec which is defined by the python_script action runner (improvement) #5084
20+
21+
Contributed by @hnanchahal
22+
1823
Fixed
1924
~~~~~~~~~
2025
* Fix nginx buffering long polling stream to client. Instead of waiting for closed connection

contrib/packs/actions/install.meta.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@
3737
description: "Set to True to skip pack dependency installations."
3838
required: false
3939
default: false
40+
timeout:
41+
default: 600
42+
required: false
43+
description: Action timeout in seconds. Action will get killed if it doesn't finish in timeout
44+
type: integer
45+

contrib/packs/actions/setup_virtualenv.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@
2929
description: "Optional environment variables"
3030
required: false
3131
default: null
32+
timeout:
33+
default: 600
34+
required: false
35+
description: Action timeout in seconds. Action will get killed if it doesn't finish in timeout
36+
type: integer

contrib/packs/actions/workflows/install.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ input:
99
- force
1010
- python3
1111
- skip_dependencies
12+
- timeout
1213

1314
vars:
1415
- packs_list: null
@@ -98,6 +99,7 @@ tasks:
9899
packs: <% ctx().packs_list %>
99100
env: <% ctx().env %>
100101
python3: <% ctx().python3 %>
102+
timeout: <% ctx().timeout %>
101103
next:
102104
- when: <% succeeded() %>
103105
do: get_pack_warnings

0 commit comments

Comments
 (0)