Michael
11/14/2024, 11:40 PM{
"job_configuration": {
"env": "{{ env }}",
"name": "{{ name }}",
"labels": "{{ labels }}",
"region": "{{ region }}",
"command": "{{ command }}",
"timeout": "{{ timeout }}",
"job_body": {
"kind": "Job",
"spec": {
"template": {
"metadata": {
"annotations": {
"<http://run.googleapis.com/vpc-access-connector|run.googleapis.com/vpc-access-connector>": "{{ vpc_connector_name }}"
}
},
"spec": {
"template": {
"spec": {
"containers": [
{
"image": "{{ image }}",
"command": "{{ command }}",
"resources": {
"limits": {
"cpu": "{{ cpu }}",
"memory": "{{ memory }}"
},
"requests": {
"cpu": "{{ cpu }}",
"memory": "{{ memory }}"
}
}
}
],
"timeoutSeconds": "{{ timeout }}",
"serviceAccountName": "{{ service_account_name }}"
}
}
}
}
},
"metadata": {
"name": "{{ name }}",
"annotations": {
"<http://run.googleapis.com/launch-stage|run.googleapis.com/launch-stage>": "BETA"
}
},
"apiVersion": "<http://run.googleapis.com/v1|run.googleapis.com/v1>"
},
"keep_job": "{{ keep_job }}",
"credentials": "{{ credentials }}"
}
}
I get an error message that looks like this
Failed to generate job configuration: 1 validation error for PushPoolCloudRunWorkerJobConfiguration
job_body
Value error, Job is missing required attributes at the following paths: /spec/template/spec/template [type=value_error, input_value={'kind': 'Job', 'spec': {...'<http://run.googleapis.com/v1|run.googleapis.com/v1>'}, input_type=dict]
For further information visit <https://errors.pydantic.dev/2.9/v/value_error>
Marvin
11/14/2024, 11:41 PMI have been trying to add my cloud sql instance to my job configuration in my work pool but everytime I make the change all deployments using the workpool crashes. My job config that keep crashes, look like this. Does anyone know what I am doing wrong```{ "job_configuration": { "env": "{{ env }}", "name": "{{ name }}", "labels": "{{ labels }}", "region": "{{ region }}", "command": "{{ command }}", "timeout": "{{ timeout }}", "job_body": { "kind": "Job", "spec": { "template": { "metadata": { "name": "{{ name }}", "annotations": { "<http://run.googleapis.com/cloudsql-instances%7Crun.googleapis.com/cloudsql-instances>": "{{ cloudsql_instance }}" } }, "spec": { "template": { "spec": { "containers": [ { "image": "{{ image }}", "command": "{{ command }}", "resources": { "limits": { "cpu": "{{ cpu }}", "memory": "{{ memory }}" }, "requests": { "cpu": "{{ cpu }}", "memory": "{{ memory }}" } } } ], "timeoutSeconds": "{{ timeout }}", "serviceAccountName": "{{ service_account_name }}" }
Nate
11/15/2024, 12:11 AM"spec": {
"template": {
seems to be inside itself, are you building this programmatically somehow?Michael
11/15/2024, 12:46 AMNate
11/15/2024, 1:16 AMNate
11/15/2024, 1:19 AMMichael
11/15/2024, 1:38 AMMichael
11/15/2024, 1:41 AMNate
11/15/2024, 2:01 AMMichael
11/15/2024, 2:03 AMMichael
11/15/2024, 2:08 AMNate
11/15/2024, 2:08 AMNate
11/15/2024, 2:09 AMNate
11/15/2024, 2:09 AMMichael
11/15/2024, 2:09 AMNate
11/15/2024, 2:10 AMMichael
11/17/2024, 3:23 AM