|
|
@ -282,6 +282,7 @@ class update_worker(threading.Thread):
|
|
|
|
self.app.logger.error("Exception reached processing watch UUID: %s - %s", uuid, str(e))
|
|
|
|
self.app.logger.error("Exception reached processing watch UUID: %s - %s", uuid, str(e))
|
|
|
|
self.datastore.update_watch(uuid=uuid, update_obj={'last_error': str(e)})
|
|
|
|
self.datastore.update_watch(uuid=uuid, update_obj={'last_error': str(e)})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if self.datastore.data['watching'].get(uuid):
|
|
|
|
# Always record that we atleast tried
|
|
|
|
# Always record that we atleast tried
|
|
|
|
count = self.datastore.data['watching'][uuid].get('check_count', 0) + 1
|
|
|
|
count = self.datastore.data['watching'][uuid].get('check_count', 0) + 1
|
|
|
|
self.datastore.update_watch(uuid=uuid, update_obj={'fetch_time': round(time.time() - now, 3),
|
|
|
|
self.datastore.update_watch(uuid=uuid, update_obj={'fetch_time': round(time.time() - now, 3),
|
|
|
|