Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 1.08 KB

README.md

File metadata and controls

61 lines (39 loc) · 1.08 KB

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.