Skip to content

Commit

Permalink
monitoring: time stamp without expiration
Browse files Browse the repository at this point in the history
* Time stamps will not be deleted any more after 300 seconds.

Co-Authored-by: Peter Weber <[email protected]>
  • Loading branch information
rerowep committed Aug 30, 2021
1 parent b10e0cf commit e157da6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rero_ils/modules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,9 @@ def set_timestamp(name, **kwargs):
time_stamps[name]['time'] = utc_now
for key, value in kwargs.items():
time_stamps[name][key] = value
current_cache.set('timestamps', time_stamps)
if not current_cache.set(key='timestamps', value=time_stamps, timeout=0):
current_app.logger.warning(
f'Can not set time stamp for: {name}')
return utc_now


Expand Down

0 comments on commit e157da6

Please sign in to comment.