When using Env. FETCH_WORKERS or WEBDRIVER_DELAY_BEFORE_CONTENT_READY , it should be type int

This commit is contained in:
dgtlmoon
2022-02-08 20:01:24 +01:00
parent d7ed479ca2
commit 8d2e240a2a
2 changed files with 2 additions and 2 deletions

View File

@@ -1043,7 +1043,7 @@ def ticker_thread_check_time_launch_checks():
# Spin up Workers that do the fetching
# Can be overriden by ENV or use the default settings
n_workers = os.getenv("FETCH_WORKERS", datastore.data['settings']['requests']['workers'])
n_workers = int(os.getenv("FETCH_WORKERS", datastore.data['settings']['requests']['workers']))
for _ in range(n_workers):
new_worker = update_worker.update_worker(update_q, notification_q, app, datastore)
running_update_threads.append(new_worker)