mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 09:16:10 -06:00
Clean up docs; disable retries of failed jobs by default
This commit is contained in:
parent
84631bd52e
commit
5c404cf604
@ -207,28 +207,22 @@ The maximum execution time of a background task (such as running a custom script
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## RQ_RETRY_MAX
|
|
||||||
|
|
||||||
!!! note
|
|
||||||
This parameter was added in NetBox v3.5.
|
|
||||||
|
|
||||||
Default: `1`
|
|
||||||
|
|
||||||
The maximum number of times a background task will be retried before being marked as failed.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## RQ_RETRY_INTERVAL
|
## RQ_RETRY_INTERVAL
|
||||||
|
|
||||||
!!! note
|
!!! note
|
||||||
This parameter was added in NetBox v3.5.
|
This parameter was added in NetBox v3.5.
|
||||||
|
|
||||||
Default: `[]`
|
Default: `60`
|
||||||
|
|
||||||
The number of seconds to wait before retrying a failed background task. This is a list of integers which will be used
|
This parameter controls how frequently a failed job is retried, up to the maximum number of times specified by `RQ_RETRY_MAX`. This must be either an integer specifying the number of seconds to wait between successive attempts, or a list of such values. For example, `[60, 300, 3600]` will retry the task after 1 minute, 5 minutes, and 1 hour.
|
||||||
as an interval. For example, `[60, 300, 3600]` will retry the task after 1 minute, 5 minutes, and 1 hour.
|
|
||||||
|
|
||||||
!!! warning
|
|
||||||
If you use the interval, you should run your workers with `--with-scheduler` argument.
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## RQ_RETRY_MAX
|
||||||
|
|
||||||
|
!!! note
|
||||||
|
This parameter was added in NetBox v3.5.
|
||||||
|
|
||||||
|
Default: `0`
|
||||||
|
|
||||||
|
The maximum number of times a background task will be retried before being marked as failed.
|
||||||
|
@ -140,8 +140,8 @@ REMOTE_AUTH_STAFF_USERS = getattr(configuration, 'REMOTE_AUTH_STAFF_USERS', [])
|
|||||||
REMOTE_AUTH_GROUP_SEPARATOR = getattr(configuration, 'REMOTE_AUTH_GROUP_SEPARATOR', '|')
|
REMOTE_AUTH_GROUP_SEPARATOR = getattr(configuration, 'REMOTE_AUTH_GROUP_SEPARATOR', '|')
|
||||||
REPORTS_ROOT = getattr(configuration, 'REPORTS_ROOT', os.path.join(BASE_DIR, 'reports')).rstrip('/')
|
REPORTS_ROOT = getattr(configuration, 'REPORTS_ROOT', os.path.join(BASE_DIR, 'reports')).rstrip('/')
|
||||||
RQ_DEFAULT_TIMEOUT = getattr(configuration, 'RQ_DEFAULT_TIMEOUT', 300)
|
RQ_DEFAULT_TIMEOUT = getattr(configuration, 'RQ_DEFAULT_TIMEOUT', 300)
|
||||||
RQ_RETRY_MAX = getattr(configuration, 'RQ_RETRY_MAX', 1)
|
RQ_RETRY_INTERVAL = getattr(configuration, 'RQ_RETRY_INTERVAL', 60)
|
||||||
RQ_RETRY_INTERVAL = getattr(configuration, 'RQ_RETRY_INTERVAL', [])
|
RQ_RETRY_MAX = getattr(configuration, 'RQ_RETRY_MAX', 0)
|
||||||
SCRIPTS_ROOT = getattr(configuration, 'SCRIPTS_ROOT', os.path.join(BASE_DIR, 'scripts')).rstrip('/')
|
SCRIPTS_ROOT = getattr(configuration, 'SCRIPTS_ROOT', os.path.join(BASE_DIR, 'scripts')).rstrip('/')
|
||||||
SEARCH_BACKEND = getattr(configuration, 'SEARCH_BACKEND', 'netbox.search.backends.CachedValueSearchBackend')
|
SEARCH_BACKEND = getattr(configuration, 'SEARCH_BACKEND', 'netbox.search.backends.CachedValueSearchBackend')
|
||||||
SECURE_SSL_REDIRECT = getattr(configuration, 'SECURE_SSL_REDIRECT', False)
|
SECURE_SSL_REDIRECT = getattr(configuration, 'SECURE_SSL_REDIRECT', False)
|
||||||
|
Loading…
Reference in New Issue
Block a user