Skip to content

Commit 3c86023

Browse files
get hostname
1 parent 66e51d9 commit 3c86023

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/storage/docker/healthcheck.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121

2222
import os
23+
import socket
2324
import subprocess
2425
import sys
2526
from urllib.request import urlopen
@@ -50,7 +51,7 @@ def _is_celery_worker_healthy():
5051
"inspect",
5152
"ping",
5253
"--destination",
53-
"celery@" + os.getenv("HOSTNAME", ""),
54+
"celery@" + socket.gethostname(),
5455
],
5556
capture_output=True,
5657
text=True,

0 commit comments

Comments
 (0)