Skip to content

Commit f3f27ff

Browse files
committed
add proper celery healthcheck to healthcheck.sh
1 parent 9c8c1b2 commit f3f27ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

skipper/healthcheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
if [ "${SKIPPER_CONTAINER_TYPE}" == "CELERY" ]; then
10-
exit 0
10+
celery -A skipper inspect ping -d celery@$HOSTNAME || exit 1
1111
elif [ "${SKIPPER_CONTAINER_TYPE}" == "DJANGO" ]; then
1212
[ $(curl -A 'docker-healthcheck DJANGO' -fail -H 'Host: skipper.local' http://localhost:8000/api/ -o /dev/stderr -w '%{http_code}') -eq 403 ] || exit 1
1313
elif [ "${SKIPPER_CONTAINER_TYPE}" == "DJANGO_INTERNAL" ]; then

0 commit comments

Comments
 (0)