https://prefect.io logo
v

Vinod Sugur

10/13/2020, 2:17 PM
Hi, I am working on FargateTask sample provided in the documentation "https://docs.prefect.io/orchestration/execution/fargate_task_environment.html”. I am getting following error:
[2020-10-13 13:56:50,113] ERROR - agent | Error while deploying flow: ClientException("An error occurred (ClientException) when calling the RegisterTaskDefinition operation: Invalid setting for container 'flow'. At least one of 'memory' or 'memoryReservation' must be specified.")
. I have followed the sample given the documentation and have defined all the attributes including "memory" and "cpu". Please suggest on the same.
j

josh

10/13/2020, 3:06 PM
Hey @Vikram Iyer could you provide a code snippet of what your flow environment looks like?
v

Vikram Iyer

10/13/2020, 3:23 PM
Hey @josh, I believe you tagged me incorrectly here. This might be for @Vinod Sugur
j

josh

10/13/2020, 3:24 PM
Oh no! My bad haha I did
@Vi
and must have clicked the first name
v

Vinod Sugur

10/13/2020, 5:00 PM
@josh Here is the code snippet:
code.py
j

josh

10/13/2020, 5:20 PM
Hmm that looks correct to me, are you seeing the error when in the flow logs or the agent?
v

Vinod Sugur

10/13/2020, 5:33 PM
I see at agent
The error is also logged in flow logs
j

josh

10/13/2020, 5:34 PM
Okay this seems like your fargate agent needs to be configured to create the initial fargate task https://docs.prefect.io/orchestration/agents/fargate.html#configuration
v

Vinod Sugur

10/13/2020, 5:34 PM
Okay
I have gone through the documentation. Agent did create task but it picked the parameters defined in the agent configuration, and failed for Cluster not found error. I am still working on this issue, will update on this by tomorrow.
@josh I was able to proceed further, and at present task are registered in fargate, and flow logs status is submitted but it did not get triggered. I debugged it and here are the log “Run created for task arn” and “Completed flow run submission”. I don’t see any further logs in AWS or UI. Any input on the same?
@josh Prefect flow is up and running. The issue was related to storage registry url. Thanks Vinod