Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cloud run admin api job status error

Hello,

I have a Python code deployed into cloud run as service. This script use a cloud run admin api to create a job and run it after creation if response of create job request is = 200.

if I try the code from local works fine. If I try the script into cloud run, after creation job the run api give me this error:

  • please wait until the job's ready status condition is true.

Probably after creation api response 200, the job is in creation? How I can check the condition status of job using cloud run admin api?

0 1 185
1 REPLY 1

Hello @snef ,

Welcome to Google Cloud Community!

To check the condition status of a job using Cloud Run Admin API, you can make use of the `projects.locations.job.get` method. I'll also provide a document that you can refer to for trying out the method with live data and seeing the result. Set the necessary variables for the projectID, location, and job ID.

Let me know if this helps. Alternatively, if you need further assistance, you can contact Google Cloud Support for additional support.