Charlie Cahoon
09/16/2020, 4:02 PMKubernetesJobEnvironment
and some of our flows are failing with the error below. I'm sure it's something minor... if we wait a few minutes and retry from the UI it does eventually run.
Failed to create Kubernetes job: (409)
Reason: Conflict
HTTP response headers: HTTPHeaderDict({'Audit-Id': '8b3f7073-0520-49a3-9d38-60d761af5fbe', 'Content-Type': 'application/json', 'Date': 'Wed, 16 Sep 2020 15:55:38 GMT', 'Content-Length': '242'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"jobs.batch \"workflows-prefect-job\" already exists","reason":"AlreadyExists","details":{"name":"workflows-prefect-job","group":"batch","kind":"jobs"},"code":409}
josh
09/16/2020, 4:05 PMKubernetesJobEnvironment
has an optional kwarg unique_job_name: bool
which when set to True
will generate a unique name for the prefect job on each runCharlie Cahoon
09/16/2020, 4:06 PM