Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chart/templates/workers/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ spec:
{{- else }}
- sh
- -c
- CONNECTION_CHECK_MAX_COUNT=0 exec /entrypoint python -m celery --app {{ include "celery_executor_namespace" . }} inspect ping -d celery@$(hostname)
- CONNECTION_CHECK_MAX_COUNT=0 exec /entrypoint python -m celery --app {{ include "celery_executor_namespace" . }} inspect ping -d celery@$(python -c 'import socket; print(socket.gethostname())')
{{- end }}
{{- end }}
ports:
Expand Down
1 change: 1 addition & 0 deletions helm-tests/tests/helm_tests/airflow_core/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,7 @@ def test_livenessprobe_default_command(self, airflow_version):
"spec.template.spec.containers[0].livenessProbe.exec.command", docs[0]
)
assert "airflow.providers.celery.executors.celery_executor.app" in livenessprobe_cmd[-1]
assert "socket.gethostname()" in livenessprobe_cmd[-1]

@pytest.mark.parametrize(
"workers_values",
Expand Down
Loading