yquaziii commented on issue #49074:
URL: https://github.com/apache/airflow/issues/49074#issuecomment-4889096621
**[1] Reproduction Logs (before fix):**
```text
root@93f1192020ad:/opt/airflow# airflow dags trigger example_bash_operator
/opt/airflow/airflow/metrics/base_stats_logger.py:22
RemovedInAirflow3Warning: Timer and timing metrics publish in seconds were
deprecated. It is enabled by default from Airflow 3 onwards. Enable
timer_unit_consistency to publish all the timer and timing metrics in
milliseconds.
/opt/airflow/airflow/triggers/base.py:27 RemovedInAirflow3Warning: Timer and
timing metrics publish in seconds were deprecated. It is enabled by default
from Airflow 3 onwards. Enable timer_unit_consistency to publish all the timer
and timing metrics in milliseconds.
[2026-07-02T11:38:44.366+0000] {__init__.py:43} INFO - Loaded API auth
backend: airflow.api.auth.backend.session
| | | |
| | | last_scheduling_dec |
| | |
conf | dag_id | dag_run_id | data_interval_start |
data_interval_end | end_date | external_trigger | ision |
logical_date | run_type | start_date | state
=====+=====================+======================+=====================+======================+==========+==================+=====================+======================+==========+============+=======
{} | example_bash_operat | manual__2026-07-02T1 | 2026-07-01 |
2026-07-02 | None | True | None |
2026-07-02 | manual | None | queued
| or | 1:38:47+00:00 | 00:00:00+00:00 |
00:00:00+00:00 | | | |
11:38:47+00:00 | | |
root@93f1192020ad:/opt/airflow#
AIRFLOW__CORE__EXECUTOR=CeleryKubernetesExecutor airflow tasks run
example_bash_operator runme_0 "manual__2026-07-02T11:38:47+00:00"
/opt/airflow/airflow/metrics/base_stats_logger.py:22
RemovedInAirflow3Warning: Timer and timing metrics publish in seconds were
deprecated. It is enabled by default from Airflow 3 onwards. Enable
timer_unit_consistency to publish all the timer and timing metrics in
milliseconds.
/opt/airflow/airflow/triggers/base.py:27 RemovedInAirflow3Warning: Timer and
timing metrics publish in seconds were deprecated. It is enabled by default
from Airflow 3 onwards. Enable timer_unit_consistency to publish all the timer
and timing metrics in milliseconds.
[2026-07-02T11:39:23.378+0000] {dagbag.py:588} INFO - Filling up the DagBag
from /files/dags
[2026-07-02T11:39:25.665+0000] {task_command.py:467} INFO - Running
<TaskInstance: example_bash_operator.runme_0 manual__2026-07-02T11:38:47+00:00
[None]> on host 93f1192020ad
Traceback (most recent call last):
File "/usr/local/bin/airflow", line 10, in <module>
sys.exit(main())
File "/opt/airflow/airflow/__main__.py", line 62, in main
args.func(args)
File "/opt/airflow/airflow/cli/cli_config.py", line 49, in command
return func(*args, **kwargs)
File "/opt/airflow/airflow/utils/cli.py", line 116, in wrapper
return f(*args, **kwargs)
File "/opt/airflow/airflow/cli/commands/task_command.py", line 483, in
task_run
task_return_code = _run_task_by_selected_method(args, _dag, ti)
File "/opt/airflow/airflow/cli/commands/task_command.py", line 257, in
_run_task_by_selected_method
_run_task_by_executor(args, dag, ti)
File "/opt/airflow/airflow/cli/commands/task_command.py", line 286, in
_run_task_by_executor
executor.start()
File
"/opt/airflow/airflow/providers/celery/executors/celery_kubernetes_executor.py",
line 112, in start
self.kubernetes_executor.start()
File
"/opt/airflow/airflow/providers/cncf/kubernetes/executors/kubernetes_executor.py",
line 295, in start
self.kube_client = get_kube_client()
File "/opt/airflow/airflow/providers/cncf/kubernetes/kube_client.py", line
129, in get_kube_client
config.load_incluster_config(client_configuration=configuration)
File
"/usr/local/lib/python3.8/site-packages/kubernetes/config/incluster_config.py",
line 118, in load_incluster_config
InClusterConfigLoader(
File
"/usr/local/lib/python3.8/site-packages/kubernetes/config/incluster_config.py",
line 54, in load_and_set
self._load_config()
File
"/usr/local/lib/python3.8/site-packages/kubernetes/config/incluster_config.py",
line 62, in _load_config
raise ConfigException("Service host/port is not set.")
kubernetes.config.config_exception.ConfigException: Service host/port is not
set.
```
**[2] Verification Logs (after fix):**
```text
root@93f1192020ad:/opt/airflow#
AIRFLOW__CORE__EXECUTOR=CeleryKubernetesExecutor airflow tasks run
example_bash_operator runme_0 "manual__2026-07-02T11:38:47+00:00"
/opt/airflow/airflow/metrics/base_stats_logger.py:22
RemovedInAirflow3Warning: Timer and timing metrics publish in seconds were
deprecated. It is enabled by default from Airflow 3 onwards. Enable
timer_unit_consistency to publish all the timer and timing metrics in
milliseconds.
/opt/airflow/airflow/triggers/base.py:27 RemovedInAirflow3Warning: Timer and
timing metrics publish in seconds were deprecated. It is enabled by default
from Airflow 3 onwards. Enable timer_unit_consistency to publish all the timer
and timing metrics in milliseconds.
[2026-07-02T11:41:17.187+0000] {dagbag.py:588} INFO - Filling up the DagBag
from /files/dags
[2026-07-02T11:41:19.344+0000] {task_command.py:467} INFO - Running
<TaskInstance: example_bash_operator.runme_0 manual__2026-07-02T11:38:47+00:00
[success]> on host 93f1192020ad
root@93f1192020ad:/opt/airflow#
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]