Respect old downtime setting name if user has already set it

This commit is contained in:
Alan Rominger
2023-08-21 10:48:00 -04:00
committed by Dave
parent decff01fa4
commit 362e11aaf2
3 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ class RunnerCallback:
self.safe_env = {}
self.event_ct = 0
self.model = model
self.update_attempts = int(settings.DISPATCHER_DB_DOWNTIME_TOLERANCE / 5)
self.update_attempts = int(getattr(settings, 'DISPATCHER_DB_DOWNTOWN_TOLLERANCE', settings.DISPATCHER_DB_DOWNTIME_TOLERANCE) / 5)
self.wrapup_event_dispatched = False
self.artifacts_processed = False
self.extra_update_fields = {}