https://prefect.io logo
Title
t

Tibs

04/05/2023, 6:40 PM
Hi, I am running a deployment multiple times from a master flow with different parameters.. On Sunday, 2 of the child runs failed with error
Submission failed. IndexError: list index out of range
, does anyone know what may be the cause of this? Looks like an error in prefect-aws - traceback from prefect agent in thread prefect-aws version 0.2.4 prefect version 2.8.2 flows run using ECSTask
2023-04-02T14:02:55.305+03:00	11:02:55.303 | ERROR | prefect.agent - Failed to submit flow run '28dbd658-e19a-46ba-8d39-254769649179' to infrastructure.
2023-04-02T14:02:55.305+03:00	Traceback (most recent call last):
2023-04-02T14:02:55.305+03:00	File "/usr/local/lib/python3.10/site-packages/prefect/agent.py", line 481, in _submit_run_and_capture_errors
2023-04-02T14:02:55.305+03:00	result = await infrastructure.run(task_status=task_status)
2023-04-02T14:02:55.305+03:00	File "/usr/local/lib/python3.10/site-packages/prefect_aws/ecs.py", line 610, in run
2023-04-02T14:02:55.305+03:00	) = await run_sync_in_worker_thread(
2023-04-02T14:02:55.305+03:00	File "/usr/local/lib/python3.10/site-packages/prefect/utilities/asyncutils.py", line 91, in run_sync_in_worker_thread
2023-04-02T14:02:55.305+03:00	return await anyio.to_thread.run_sync(
2023-04-02T14:02:55.35+03:00	File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync
2023-04-02T14:02:55.305+03:00	return await get_asynclib().run_sync_in_worker_thread(
2023-04-02T14:02:55.305+03:00	File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
2023-04-02T14:02:55.305+03:00	return await future
2023-04-02T14:02:55.305+03:00	File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run
2023-04-02T14:02:55.305+03:00	result = context.run(func, *args)
2023-04-02T14:02:55.305+03:00	File "/usr/local/lib/python3.10/site-packages/prefect_aws/ecs.py", line 801, in _create_task_and_wait_for_start
2023-04-02T14:02:55.305+03:00	self._report_task_run_creation_failure(task_run, exc)
2023-04-02T14:02:55.305+03:00	File "/usr/local/lib/python3.10/site-packages/prefect_aws/ecs.py", line 797, in _create_task_and_wait_for_start
2023-04-02T14:02:55.305+03:00	task = self._run_task(ecs_client, task_run)
2023-04-02T14:02:55.305+03:00	File "/usr/local/lib/python3.10/site-packages/prefect_aws/ecs.py", line 1458, in _run_task
2023-04-02T14:02:55.305+03:00	return ecs_client.run_task(**task_run)["tasks"][0]
2023-04-02T14:02:55.305+03:00	IndexError: list index out of range