From 53dcdc7bfcc869b0e881eca7e0784f8bc408c92e Mon Sep 17 00:00:00 2001 From: Michal Tyminski Date: Thu, 1 Sep 2022 10:03:19 -0700 Subject: [PATCH] add JOBRESULT_RETENTION to configuration.py Netbox v3.2.1 introduces new enhancement to retain old script and report results for configured lifetime. --- configuration/configuration.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configuration/configuration.py b/configuration/configuration.py index c8ddd14..a18e71e 100644 --- a/configuration/configuration.py +++ b/configuration/configuration.py @@ -113,6 +113,9 @@ BASE_PATH = environ.get('BASE_PATH', '') # Maximum number of days to retain logged changes. Set to 0 to retain changes indefinitely. (Default: 90) CHANGELOG_RETENTION = int(environ.get('CHANGELOG_RETENTION', 90)) +# Maximum number of days to retain job results (scripts and reports). Set to 0 to retain job results in the database indefinitely. (Default: 90) +JOBRESULT_RETENTION = int(environ.get('JOBRESULT_RETENTION', 90)) + # API Cross-Origin Resource Sharing (CORS) settings. If CORS_ORIGIN_ALLOW_ALL is set to True, all origins will be # allowed. Otherwise, define a list of allowed origins using either CORS_ORIGIN_WHITELIST or # CORS_ORIGIN_REGEX_WHITELIST. For more information, see https://github.com/ottoyiu/django-cors-headers