amoghrajesh commented on code in PR #46860:
URL: https://github.com/apache/airflow/pull/46860#discussion_r1962203463
##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/executors/kubernetes_executor_utils.py:
##########
@@ -388,8 +388,20 @@ def run_next(self, next_job: KubernetesJobType) -> None:
key, command, kube_executor_config, pod_template_file = next_job
dag_id, task_id, run_id, try_number, map_index = key
-
- if command[0:3] != ["airflow", "tasks", "run"]:
+ ser_input = ""
+ if len(command) == 1:
Review Comment:
Or it'd end up coming this way:
```
The command is token=''
ti=TaskInstance(id=UUID('01951f87-2a2b-7f50-8598-7b6be4af65e1'),
task_id='extract', dag_id='tutorial_dag',
run_id='manual__2025-02-19T18:45:06.706040+00:00_EQYJmPJz', try_number=1,
map_index=-1, pool_slots=1, queue='default', priority_weight=3)
dag_rel_path=PosixPath('tutorial_dag.py')
bundle_info=BundleInfo(name='example_dags', version=None)
log_path='dag_id=tutorial_dag/run_id=manual__2025-02-19T18:45:06.706040+00:00_EQYJmPJz/task_id=extract/attempt=.log'
kind='ExecuteTask'
```
Nothing to worry here too, the former just felt easier to me
--
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]