mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-02 11:40:58 +00:00
Backup task fixes (#4307)
* Ensure 'retry' is always greater than timeout * Adds setting for controlling how many days between automated backups * Adds configuration option for max_attempts * Update for daily backup task - Prevent backup attempts from ocurring too frequently - Add setting for controlling how many days between backups * Exit early
This commit is contained in:
@ -969,6 +969,16 @@ class InvenTreeSetting(BaseInvenTreeSetting):
|
||||
'default': False,
|
||||
},
|
||||
|
||||
'INVENTREE_BACKUP_DAYS': {
|
||||
'name': _('Days Between Backup'),
|
||||
'description': _('Specify number of days between automated backup events'),
|
||||
'validator': [
|
||||
int,
|
||||
MinValueValidator(1),
|
||||
],
|
||||
'default': 1,
|
||||
},
|
||||
|
||||
'INVENTREE_DELETE_TASKS_DAYS': {
|
||||
'name': _('Delete Old Tasks'),
|
||||
'description': _('Background task results will be deleted after specified number of days'),
|
||||
|
Reference in New Issue
Block a user