Alex Turek
12/30/2022, 9:51 PMAn error occured while monitoring flow run '793a0ee8-fe06-48d3-8858-31b2e99e4c50'. The flow run will not be marked as failed, but an issue may have occurred.
I think the Agent is trying to watch the created ECS Task’s logs, and using the wrong parameters to watch themprefect-aws
that shows up in the stack trace https://github.com/PrefectHQ/prefect-aws/blob/267d973fcf9f9ccf1a4508140daf5b033a53c609/prefect_aws/ecs.py#L1013ECSTask(
...
stream_output = True,
configure_cloudwatch_logs = True,
)
An error occurred (ResourceNotFoundException) when calling the GetLogEvents operation: The specified log stream does not exist.
Abosede Oladipo
12/31/2022, 11:11 PMprefect-aws
code is being built using log-stream-prefix/family/task-definition:revision
.
stream_name = "/".join(
[
log_config["awslogs-stream-prefix"],
task_definition["family"],
task_arn.rsplit("/")[-1],
]
)
Meanwhile, aws creates the logs stream using log-stream-prefix/container-name/container-id
prefect-aws
code is being built using log-stream-prefix/family/task-definition:revision
.
stream_name = "/".join(
[
log_config["awslogs-stream-prefix"],
task_definition["family"],
task_arn.rsplit("/")[-1],
]
)
Meanwhile, aws docs creates the log stream using log-stream-prefix/container-name/ecs-task-id
Zanie
01/03/2023, 5:05 PM