bland-dress-83134
08/06/2025, 2:20 PMPodTemplate
for this task had /bin/bash -c
as the command
(where arguments
was the pyflyte-fast-execute ...
etc)
[...]
/usr/local/lib/python3.10/dist-packages/flytekit/bin/entrypoint.py:754 in ā
ā fast_execute_task_cmd ā
ā ā
ā ā± 754 ā p = subprocess.Popen(cmd, env=env) ā
ā ā
ā /usr/lib/python3.10/subprocess.py:971 in __init__ ā
ā ā
ā ā± 971 ā ā ā self._execute_child(args, executable, preexec_fn, close_f ā
ā ā
ā /usr/lib/python3.10/subprocess.py:1733 in _execute_child ā
ā ā
ā ā± 1733 ā ā ā ā executable = args[0] ā
ā°āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāÆ
IndexError: list index out of range
⢠I was happy to find and correct the cause, but I was also confused because another domain for this same project was using the same PodTemplate
and didn't have the `command`: I confirmed that the configured PodTemplate
in my cluster_resource_manager
config did not have this command
either. I can't figure out when I added or removed this command
but I'm assuming I removed it at some point: I'm guessing the cluster resource manager / syncresources can't detect removed keys from a PodTemplate? Is that a known limitation?
⦠I resolved this by doing a manual kubectl edit podtemplate...
and removing the command
entirely but curious whether its worth reporting this