Skip to content

Commit

Permalink
Merge pull request #4169 from magfest/celery_timeout
Browse files Browse the repository at this point in the history
Timeout if celery is dead
  • Loading branch information
bitbyt3r authored Jul 8, 2023
2 parents 2b54177 + 9d3d2a0 commit 80a2994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uber/site_sections/devtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def health(self, session):

payload = random.randrange(1024)
task_run_time = -time.perf_counter()
response = ping.delay(payload).wait()
response = ping.delay(payload).wait(timeout=2)
task_run_time += time.perf_counter()

return json.dumps({
Expand Down

0 comments on commit 80a2994

Please sign in to comment.