Cloud Run Jobs notifications on PubSub

Hi there. Is there a way (or on the roadmap) to get a PubSub/Eventarc topic for Cloud Run Jobs notifications such as jobs started/finished/errored/cancelled? Feels kind of clunky to poll the services all the time to check if they're done.

0 1 327
1 REPLY 1

Hi @PatrickHeneise,

Welcome to Google Cloud Community!

There is currently no built-in way to receive Pub/Sub notifications for Cloud Run Jobs events, but it is on the roadmap. In the meantime, there are a few workarounds that you can use:

  • Use a Cloud Function to publish messages to a Pub/Sub topic.
  • Use a third-party service like Eventarc.
  • Poll the Cloud Run Jobs API.

The best option for you will depend on your specific needs. If you need a reliable and scalable solution, then I recommend using a Cloud Function or a third-party service like Eventarc. If you are only interested in receiving notifications for a small number of jobs, then you may be able to get away with polling the Cloud Run Jobs API.

You may also file a feature request in this link. The Product team will look into this. However, there is no ETA for it. You may also check the progress of your request on that same link.

Thanks