def update_sync_stamp(context): """update the SYNC key with the actual timestamp in the dictstorage""" timestamp = datetime.now().isoformat() dictstorage.set(DICTSTORAGE_SYNC_KEY, timestamp) logger.info("Updated sync_stamp in dictstorage" " to current timestamp (%s)" % timestamp) return timestamp
def update_sync_stamp(context): """Update the sync stamp with the current timestamp in the dictstorage. """ timestamp = datetime.now().isoformat() dictstorage.set(DICTSTORAGE_SYNC_KEY, timestamp) logger.info("Updated sync_stamp in dictstorage" " to current timestamp (%s)" % timestamp) return timestamp
def activate(self): key = self.get_key() dictstorage.set(key, str(True)) self.invalidate_is_active()