Hello,
We are running the backend of a web app in Cloud Run. We have a task that takes a lot of time (~15-30 mins) to execute and timeouts.
Is there any way to run it in Cloud Run?
Other solutions I found on the web:
- Cloud Run Jobs doesn’t seem to fit our use-case as we need to pass some params to customise the job.
- I saw Guillaume’s Cloud Build trick. https://stackoverflow.com/questions/59646634/long-running-job-on-gcp-cloud-run Very smart but a bit hacky
- We could also use VM but I prefer serverless solution
In a perfect world we could use the same Cloud Run service to solve our two use-cases, the web API and the job. Maybe with a custom http header?
Thanks for your help,
Louis Sanna.
Best answer by guillaume blaquiere
View original