https://prefect.io logo
k

Kelvin DeCosta

11/11/2022, 1:32 PM
Hey everyone A bit of a story ahead. I discovered that our flow runs were failing almost instantly. The agent logs didn't provide an error message and just skipped to "Completed flow run submission". The
ECSTask
block uses the
boto3
ecs
client to call
run_task
with some arguments that it derives based on the input attributes. The agent log, if set with
DEBUG
log level, shows the exact arguments that are passed to this function. I figured that since the failure happens almost instantly after this message, it had to be this call that was causing the fatal error. Fortunately, when I emulated the call via a python script, I ran into this error:
Copy code
botocore.errorfactory.InvalidParameterException: An error occurred (InvalidParameterException) when calling the RunTask operation: Some tags contain invalid characters. Valid characters: UTF-8 letters, spaces, numbers and _ . / = + - : @.
So, if you have deployments that use the
ECSTask
infrastructure block, make sure you only use the following characters in the flow and deployment names:
UTF-8 letters, spaces, numbers and _ . / = + - : @
I'd rather not restrict flow / deployment names, so if there are workarounds to this problem, I'd really appreciate it.
👍 1
c

Christopher Boyd

11/11/2022, 4:48 PM
Hi Kelvin, workarounds in what context? What would be an ideal scenario / workaround here?
k

Kelvin DeCosta

11/16/2022, 8:59 AM
Hey @Christopher Boyd Now that I think about it the current situation is fine and makes sense. Still, I'd appreciate it if the boto error was captured and shown in the log messages thrown by the agent Thank you
🙌 1
5 Views