Create an explicit configuration parameter to control background task execution timeout #4134

Closed
opened 2025-12-29 18:33:22 +01:00 by adam · 2 comments
Owner

Originally created by @jeremystretch on GitHub (Sep 23, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.6.9
  • NetBox version: 2.9.3

Proposed Functionality

Introduce a new configuration parameter named RQ_DEFAULT_TIMEOUT to specify the maximum execution time of a background task (e.g. running a script or report).

Use Case

The default timeout for an RQ queue is currently controlled by the DEFAULT_TIMEOUT parameter set under the REDIS configuration. This is misleading, as the parameter appears to control the timeout for connecting to a Redis database, as opposed to the the duration of a task's execution. (Indeed, the current documentation erroneously indicates that this parameter represents the "connection timeout in seconds.")

Database Changes

None

External Dependencies

None

Originally created by @jeremystretch on GitHub (Sep 23, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.6.9 * NetBox version: 2.9.3 ### Proposed Functionality Introduce a new configuration parameter named `RQ_DEFAULT_TIMEOUT` to specify the maximum execution time of a background task (e.g. running a script or report). ### Use Case The default timeout for an RQ queue is currently controlled by the `DEFAULT_TIMEOUT` parameter set under the `REDIS` configuration. This is misleading, as the parameter appears to control the timeout for connecting to a Redis database, as opposed to the the duration of a task's execution. (Indeed, the current documentation [erroneously indicates](https://netbox.readthedocs.io/en/stable/configuration/required-settings/#redis) that this parameter represents the "connection timeout in seconds.") ### Database Changes None ### External Dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 18:33:22 +01:00
adam closed this issue 2025-12-29 18:33:22 +01:00
Author
Owner

@billybob83400 commented on GitHub (Oct 7, 2020):

Hello,
I got this error when I perform 'docker up':
/opt/netbox/netbox/netbox/settings.py:230: UserWarning: DEFAULT_TIMEOUT is no longer supported under REDIS configuration. Set RQ_DEFAULT_TIMEOUT instead.
warnings.warn('DEFAULT_TIMEOUT is no longer supported under REDIS configuration. Set RQ_DEFAULT_TIMEOUT instead.')

How can I set this RQ_DEFAULT_TIMEOUT instead of the REDIS ?

Thanks

@billybob83400 commented on GitHub (Oct 7, 2020): Hello, I got this error when I perform 'docker up': /opt/netbox/netbox/netbox/settings.py:230: UserWarning: DEFAULT_TIMEOUT is no longer supported under REDIS configuration. Set RQ_DEFAULT_TIMEOUT instead. warnings.warn('DEFAULT_TIMEOUT is no longer supported under REDIS configuration. Set RQ_DEFAULT_TIMEOUT instead.') How can I set this RQ_DEFAULT_TIMEOUT instead of the REDIS ? Thanks
Author
Owner

@jeremystretch commented on GitHub (Oct 7, 2020):

@billybob83400 please post to our mailing list for support issues.

@jeremystretch commented on GitHub (Oct 7, 2020): @billybob83400 please post to our [mailing list](https://groups.google.com/g/netbox-discuss) for support issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4134