Skip to content

Commit 5d929f2

Browse files
committed
Fix typo
1 parent fc692c7 commit 5d929f2

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

optimizerapi/optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def disconnect_check():
8686
print("Found existing job")
8787
except NoSuchJobError:
8888
print("Creating new job")
89-
job = queue.enqueue(do_run_work, body, job_id=job_id, result_ttl=TTL, job_timeout=WORKER_TIMEOUT, )
89+
job = queue.enqueue(do_run_work, body, job_id=job_id, result_ttl=TTL, job_timeout=WORKER_TIMEOUT)
9090
while job.return_value() is None:
9191
if disconnect_check():
9292
try:

optimizerapi/worker.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
else:
1212
REDIS_URL = "redis://localhost:6379"
1313

14-
if "WORKER_TIMEOUT" in os.environ:
15-
WORKER_TIMEOUT = int(os.environ["WORKER_TIMEOUT"])
16-
else:
17-
WORKER_TIMEOUT = 180
18-
1914
if __name__ == "__main__":
2015
redis = Redis.from_url(REDIS_URL)
2116
queue = Queue(connection=redis)

0 commit comments

Comments
 (0)