-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running Workloads without WEB on CloudRun #166
Comments
Kinda depends how often you need to run it, is it on a set schedule? |
It is set on schedule. We have like a current project where all is in cloudrun but run the jobs (about 20 different jobs) that are scheduled from every 1 minute, to every 1h or once a day. Often it's the same container/Tool but different cli arguments. |
Seems like this will be a reality pretty soon -- there may be support for "server-less" jobs on cloud run. It's in alpha so they may scrap the functionality. Seems promising though. The only documentation I've found is https://cloud.google.com/sdk/gcloud/reference/alpha/run/jobs and some demos at https://github.com/GoogleCloudPlatform/jobs-demos |
@sohail288 - awesome, that was exactly what i was looking for I just wanted to test it and run into following issue I tried to run my own container
Then I get the following exception. I tried to follow https://github.com/GoogleCloudPlatform/jobs-demos/tree/main/screenshot to get it up and running, but failing with the Namespaces instance issue and can't figure out which part I'm missing.
|
@LMSSonos not sure about the namespace error. I was able to run a simple python based docker image using the alpha API without any issue (besides the documentation not matching up with the actual exposed gcloud commands). FYI I was running it in |
@sohail288 thanks, works now well for me. I received an update for gcloud and with following version it works now as expected.
Will start to move some real workload to it ;-) |
What is the recommendation to run workloads (containers) which execute a command line tool to do some work (like sending emails, cleaning up data, making calculations, etc) in CloudRun.
The text was updated successfully, but these errors were encountered: