perf: 优化 celery health 判断

pull/12229/head
吴小白 2023-11-29 11:14:09 +08:00 committed by Bryan
parent 0fdae00722
commit eee41008cc
1 changed files with 2 additions and 2 deletions

View File

@ -4,5 +4,5 @@ set -e
test -e /tmp/worker_ready_ansible
test -e /tmp/worker_ready_celery
test -e /tmp/worker_heartbeat_ansible && test $(($(date +%s) - $(stat -c %Y /tmp/worker_heartbeat_ansible))) -lt 10
test -e /tmp/worker_heartbeat_celery && test $(($(date +%s) - $(stat -c %Y /tmp/worker_heartbeat_celery))) -lt 10
test -e /tmp/worker_heartbeat_ansible && test $(($(date +%s) - $(stat -c %Y /tmp/worker_heartbeat_ansible))) -lt 20
test -e /tmp/worker_heartbeat_celery && test $(($(date +%s) - $(stat -c %Y /tmp/worker_heartbeat_celery))) -lt 20