fengyu05 opened a new issue #15883:
URL: https://github.com/apache/airflow/issues/15883
**Apache Airflow version**:
```
root@airflow-865c58dc6-cl754:~/airflow# airflow version
2.0.2
```
**Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
```
kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3",
GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean",
BuildDate:"2020-10-14T12:50:19Z", GoVersion:"go1.15.2", Compiler:"gc",
Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"18+",
GitVersion:"v1.18.9-eks-d1db3c",
GitCommit:"d1db3c46e55f95d6a7d3e5578689371318f95ff9", GitTreeState:"clean",
BuildDate:"2020-10-20T22:18:07Z", GoVersion:"go1.13.15", Compiler:"gc",
Platform:"linux/amd64"}
```
**Environment**:
- **Cloud provider or hardware configuration**:
- **OS** (e.g. from /etc/os-release):
- **Kernel** (e.g. `uname -a`):
- **Install tools**:
- **Others**:
**What happened**:
After upgrade to airflow 2.0.2 kubernetes_executor always report
`airflow.exceptions.AirflowException: Could not get scheduler_job_id`
```
root@airflow-865c58dc6-cl754:~/airflow# airflow tasks run demo_bash_op
bash_op 2021-05-16
/usr/local/lib/python3.8/site-packages/airflow/configuration.py:332
DeprecationWarning: The logging_level option in [core] has been moved to the
logging_level option in [logging] - the old setting has been used, but please
update your config.
/usr/local/lib/python3.8/site-packages/airflow/configuration.py:332
DeprecationWarning: The base_log_folder option in [core] has been moved to the
base_log_folder option in [logging] - the old setting has been used, but please
update your config.
/usr/local/lib/python3.8/site-packages/airflow/configuration.py:332
DeprecationWarning: The statsd_on option in [scheduler] has been moved to the
statsd_on option in [metrics] - the old setting has been used, but please
update your config.
[2021-05-16 18:15:53,229] {dagbag.py:451} INFO - Filling up the DagBag from
/root/airflow/dags
Running <TaskInstance: demo_bash_op.bash_op 2021-05-16T00:00:00+00:00
[None]> on host airflow-865c58dc6-cl754
Traceback (most recent call last):
File "/usr/local/bin/airflow", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/airflow/__main__.py", line
40, in main
args.func(args)
File "/usr/local/lib/python3.8/site-packages/airflow/cli/cli_parser.py",
line 48, in command
return func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/airflow/utils/cli.py", line
89, in wrapper
return f(*args, **kwargs)
File
"/usr/local/lib/python3.8/site-packages/airflow/cli/commands/task_command.py",
line 235, in task_run
_run_task_by_selected_method(args, dag, ti)
File
"/usr/local/lib/python3.8/site-packages/airflow/cli/commands/task_command.py",
line 68, in _run_task_by_selected_method
_run_task_by_executor(args, dag, ti)
File
"/usr/local/lib/python3.8/site-packages/airflow/cli/commands/task_command.py",
line 91, in _run_task_by_executor
executor.start()
File
"/usr/local/lib/python3.8/site-packages/airflow/executors/kubernetes_executor.py",
line 473, in start
raise AirflowException("Could not get scheduler_job_id")
airflow.exceptions.AirflowException: Could not get scheduler_job_id
```
**What you expected to happen**:
<!-- What do you think went wrong? -->
**How to reproduce it**:
<!---
As minimally and precisely as possible. Keep in mind we do not have access
to your cluster or dags.
If you are using kubernetes, please attempt to recreate the issue using
minikube or kind.
## Install minikube/kind
- Minikube https://minikube.sigs.k8s.io/docs/start/
- Kind https://kind.sigs.k8s.io/docs/user/quick-start/
If this is a UI bug, please provide a screenshot of the bug or a link to a
youtube video of the bug in action
You can include images using the .md style of

To record a screencast, mac users can use QuickTime and then create an
unlisted youtube video with the resulting .mov file.
--->
**Anything else we need to know**:
<!--
How often does this problem occur? Once? Every time etc?
Any relevant logs to include? Put them here in side a detail tag:
<details><summary>x.log</summary> lots of stuff </details>
-->
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]