DEV Community

loading...
Cover image for Background jobs for Rails on GCP using Cloud Tasks

Background jobs for Rails on GCP using Cloud Tasks

alachaum profile image Arnaud ・1 min read

Hey guys, first post on dev.to. I thought I would introduce a gem we have developed to simplify the life of RoR people when deploying apps to Cloud Run.

Running background jobs on Cloud Run can be a pain because traditional job processors like Sidekiq or Resque are not an option if you want to go full serverless.

So we developed a library to do background jobs processing using Google Cloud Tasks. If you like Sidekiq, you should like Cloudtasker (we hope!)

Here is the link to the library: https://github.com/keypup-io/cloudtasker

And also a full blog post showcasing the gem: https://www.keypup.io/blog/cloud-tasks-for-ruby-and-rails

Discussion (5)

Collapse
bizzibody profile image
Ian bradbury

Interesting. Thanks. I'd be interested to know what your experience of using Google Cloud is like - follow up post maybe? ;)

Collapse
alachaum profile image
Arnaud Author

I've just posted a full write-up about our GCP deployment in case you're interested ;)

dev.to/alachaum/deploying-producti...

Collapse
alachaum profile image
Arnaud Author

Hehe we've achieved quite a bit with GCP at Keypup. I'll post a blog article debriefing our experience using Cloud Run + Rails early next week :)

Collapse
zhongz profile image
Zhong Zheng

Thanks. It seems App Engine app is required when creating Cloud Task queues. Is it mandatory to have an App Engine project?

Collapse
alachaum profile image
Arnaud Author

Yes, an App Engine project and/or App Engine must at least be enabled

(we discussed that on GitHub but reposting the answer here for reference purpose)

Forem Open with the Forem app