Blake Stefansen

11/14/2022, 5:22 PM
Hey y'all We are running into an interesting problem where if our
names are more than
63 characters
, our agent fails to create a deployment run using k8 jobs because it can't create a job label Will post agent log in thread
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Job.batch \"cuttercommunicationsdbagcectelecom-txtx-grays-zj7g6\" is invalid: metadata.labels: Invalid value: \"cuttercommunicationsdbagcectelecom_txtx_grayson_fwa_bdo_filing_\": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')","reason":"Invalid"
the name of our flow run gets cut off when trying to create a label for our k8 job. In doing so, the agent errors out if the flow run name is more than 63 characters
prefect==2.6.7 python==3.10 using the
It looks like the issue here may be that it ends with
🙌 1
(We even have a TODO in the code that we do not handle that yet)

Blake Stefansen

11/14/2022, 5:35 PM
oh I see. thank for pointing that out @Zanie! our team is cleaning up the flow run names for now, but if that filtering could be done on the prefect side, that would be great!


11/14/2022, 5:48 PM