-
-
Notifications
You must be signed in to change notification settings - Fork 771
Description
Feature Request: Add Timeout Option for st2 pack install
Summary
Add a command-line option to st2 pack install
that allows users to override the default action timeout. This would be especially helpful for installing large packs or packs with many dependencies on slow network connections.
Motivation
Currently, the st2 pack install <pack-name>
command uses a fixed, internal timeout for the underlying action. This can cause the installation to fail with a timeout error if the download of the pack or its dependencies takes too long. This is a frequent problem in environments with limited bandwidth or for large packs.
As a user, I have no way to increase this timeout directly from the CLI. The only current workarounds are to install the pack manually or to change the global action timeout settings, which is not ideal, as it affects all actions and requires a deeper understanding of StackStorm's configuration.
Providing a --timeout
or similar flag would give users the flexibility to handle these cases without altering global configurations, making the CLI more robust and user-friendly for pack management.
Proposed Implementation
- Introduce a new optional command-line argument for the
st2 pack install
command, for example,--timeout <seconds>
. - The value provided by this flag would be passed to the underlying
packs.install
action as anexecution_timeout
parameter, overriding the default. - The value should accept a number in seconds. If not specified, the system should use the default timeout.
Example Use Case
Instead of the command failing:
$ st2 pack install my-large-pack
...
ERROR: Action execution failed: Execution failed due to a timeout.
Gern geschehen. Hier ist der Feature-Request als Markdown-Code, den du direkt in ein GitHub-Issue kopieren kannst.
Markdown
### **Feature Request: Add Timeout Option for `st2 pack install`**
### **Summary**
Add a command-line option to `st2 pack install` that allows users to override the default action timeout. This would be especially helpful for installing large packs or packs with many dependencies on slow network connections.
---
### **Motivation**
Currently, the `st2 pack install <pack-name>` command uses a fixed, internal timeout for the underlying action. This can cause the installation to fail with a timeout error if the download of the pack or its dependencies takes too long. This is a frequent problem in environments with limited bandwidth or for large packs.
As a user, I have no way to increase this timeout directly from the CLI. The only current workarounds are to install the pack manually or to change the global action timeout settings, which is not ideal, as it affects all actions and requires a deeper understanding of StackStorm's configuration.
Providing a `--timeout` or similar flag would give users the flexibility to handle these cases without altering global configurations, making the CLI more robust and user-friendly for pack management.
---
### **Proposed Implementation**
* Introduce a new optional command-line argument for the `st2 pack install` command, for example, `--timeout <seconds>`.
* The value provided by this flag would be passed to the underlying `packs.install` action as an `execution_timeout` parameter, overriding the default.
* The value should accept a number in seconds. If not specified, the system should use the default timeout.
---
### **Example Use Case**
Instead of the command failing:
```bash
$ st2 pack install my-large-pack
...
ERROR: Action execution failed: Execution failed due to a timeout.
The user could specify a longer timeout:
$ st2 pack install my-large-pack --timeout 1800
This would allow the installation to complete successfully, even if it takes up to 30 minutes.