Project

gps-job

0.0
No commit activity in last 3 years
No release in over 3 years
Google Pub/Sub Active Job Adapter
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Google Pub/Sub job

Google Cloud Pub/Sub adapter and worker for ActiveJob.

Usage

gem 'gps-job'

First, change the ActiveJob backend.

require 'gps/job/adapter'

Rails.application.config.active_job.queue_adapter = :google_cloud_pubsub

Start the worker

$ rake gps:worker

Write the Job class and code to use it.

class MyJob < ApplicationJob
  def perform(name)
    puts "How are you?"
  end
end

Google Pub/Sub Emulator

https://cloud.google.com/pubsub/docs/emulator

$ gcloud beta emulators pubsub start

Contributing

$ bin/setup

I ❤️ Open source!

Follow github guides for forking a project

Follow github guides for contributing open source

Code Status

Build Status

License

Gem is released under the MIT license.