Skip to content

Commit

Permalink
Skipping celery check since it's failing a lot
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbyt3r committed May 17, 2023
1 parent 049f788 commit 6034e00
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions uber/site_sections/devtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,21 +218,21 @@ def health(self, session):
session.execute(text('SELECT 1'))
db_read_time += time.perf_counter()

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

return json.dumps({
'server_current_timestamp': int(datetime.utcnow().timestamp()),
'session_read_count': read_count,
'session_commit_time': session_commit_time,
'db_read_time': db_read_time,
'db_status': Session.engine.pool.status(),
'task_run_time': task_run_time,
'task_response_correct': payload == response,
'task_payload': payload,
'task_response': response,
# 'task_run_time': task_run_time,
# 'task_response_correct': payload == response,
# 'task_payload': payload,
# 'task_response': response,
})

@register_diagnostics_status_function
Expand Down

0 comments on commit 6034e00

Please sign in to comment.