[FEATURE REQUEST] set max queue size for state runs #63356
Labels
Execution-Module
Feature
new functionality including changes to functionality and code refactors, etc.
Is your feature request related to a problem? Please describe.
The
queue=True
parameter to state module functions allows a new state run to be queued and wait for a run already in progress to complete before proceeding. However, there is currently no limit to how many runs will wait in the queue. If state runs are being performed on an interval and the runs take longer than the interval time, the queue could stack up indefinitely until the machine "falls over".Describe the solution you'd like
Allow the
queue
parameter to be set to an integer, which will be checked against the current queue size. If the queue is greater than or equal to maximum, then that specific run will be treated as ifqueue=False
and return a conflict.Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.
The text was updated successfully, but these errors were encountered: