in cdsreaper/journal.py [0:0]
def get_most_recent_event(self)->int:
"""
gets the most recent journalled event id
:return: the id, or None if nothing was set.
"""
maybe_value = self._conn.get(Journal.EVENT_KEY)
if maybe_value is None:
return None
else:
try:
return int(maybe_value)
except (TypeError, ValueError) as e:
logger.error("Invalid value {0} at cdsreaper:most-recent-event could not be converted to int. Processing will start from latest event.".format(maybe_value))
self._conn.delete(Journal.EVENT_KEY)
return None