Does anyone know why an Fargate agent would immedi...
# prefect-community
a
Does anyone know why an Fargate agent would immediately fail when a flow run is triggered, with the message "An error occurred (InvalidParameterException) when calling the RegisterTaskDefinition operation: Invalid 'cpu' setting for task."
j
Hey @Adam Roderick what are you specifying for the
cpu
?
a
1024
j
Are you specifying it as a string or integer?
a
it shows as a string
in quotes
j
Side question: are you also specifying a memory amount?
a
yes 8192
I changed them to integers and it looks like the ECS Task is spinning up this time.
That is farther than I made it before
j
How are you running the agent? CLI, FargateAgent.start(), etc.? I just completed a run using strings to verify it was working
a
I had upgraded the agent to prefect 10.1 from 0.7.1
j
Oh big upgrade!
a
Heh yes probably a no no
Here is the command that starts the container in ECS
j
Yeah there was definitely some configuration change between those versions 😅
a
Yeah. I migrated our setup to use the Dockerfile method to register the flows. Previously we were using the base Docker image method
I upgraded our prefect dependencies and didn't think about how much change there must have been regarding the agent
In summary, changing the CPU and Memory values to integers resolved this
Thank you!