Hi, I am working on FargateTask sample provided in...
# ask-community
v
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
Hey @Vikram Iyer could you provide a code snippet of what your flow environment looks like?
v
Hey @josh, I believe you tagged me incorrectly here. This might be for @Vinod Sugur
j
Oh no! My bad haha I did
@Vi
and must have clicked the first name
v
@josh Here is the code snippet:
code.py
j
Hmm that looks correct to me, are you seeing the error when in the flow logs or the agent?
v
I see at agent
The error is also logged in flow logs
j
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
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