persist mapdata:last_process_updates_run cache
This commit is contained in:
parent
11d34a381c
commit
b4f48473d0
1 changed files with 2 additions and 2 deletions
|
@ -29,10 +29,10 @@ def process_map_updates(self):
|
|||
logger.info('Processing is already running, retrying in 30 seconds.')
|
||||
raise self.retry(countdown=30)
|
||||
except Exception:
|
||||
cache.set('mapdata:last_process_updates_run', (int(time.time()), False))
|
||||
cache.set('mapdata:last_process_updates_run', (int(time.time()), False), None)
|
||||
raise
|
||||
else:
|
||||
cache.set('mapdata:last_process_updates_run', (int(time.time()), True))
|
||||
cache.set('mapdata:last_process_updates_run', (int(time.time()), True), None)
|
||||
except MaxRetriesExceededError:
|
||||
logger.info('Cannot retry, retries exceeded. Exiting.')
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue