Also check that the watch is not paused before putting it into the checking queuex

pull/33/head
dgtlmoon 4 years ago
parent ab6f4d11ed
commit f2b06c63bf

@ -598,8 +598,10 @@ def ticker_thread_check_time_launch_checks():
new_worker.start()
while not app.config.exit.is_set():
running_uuids = []
for t in running_update_threads:
if t.current_uuid:
running_uuids.append(t.current_uuid)
# Look at the dataset, find a stale watch to process
@ -609,7 +611,7 @@ def ticker_thread_check_time_launch_checks():
threshold = time.time() - (minutes * 60)
for uuid, watch in datastore.data['watching'].items():
if watch['last_checked'] <= threshold:
if not watch['paused'] and watch['last_checked'] <= threshold:
if not uuid in running_uuids and uuid not in update_q.queue:
update_q.put(uuid)

Loading…
Cancel
Save