Fix retry time for Q_CLUSTER (#6489)

- Ensure it is *greater* than timeout
This commit is contained in:
Oliver 2024-02-15 11:36:14 +11:00 committed by GitHub
parent 5ca007a184
commit 5af6b92f90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -847,7 +847,7 @@ Q_CLUSTER = {
get_setting('INVENTREE_BACKGROUND_WORKERS', 'background.workers', 4)
),
'timeout': _q_worker_timeout,
'retry': min(120, _q_worker_timeout + 30),
'retry': max(120, _q_worker_timeout + 30),
'max_attempts': int(
get_setting('INVENTREE_BACKGROUND_MAX_ATTEMPTS', 'background.max_attempts', 5)
),