jumpserver/utils/check_celery.sh

9 lines
318 B
Bash
Raw Normal View History

2021-08-13 03:23:19 +00:00
#!/bin/bash
2022-12-22 06:27:13 +00:00
set -e
test -e /tmp/worker_ready_ansible
test -e /tmp/worker_ready_celery
2023-11-29 03:14:09 +00:00
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