Skip to content

An example of using Que to schedule jobs in a Rails app

License

Notifications You must be signed in to change notification settings

jbranchaud/rails-que-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rails-que-example

An example of using Que to schedule jobs in a Rails app

The que gem is a Ruby job queue that uses PostgreSQL.

Usage

Start up the rails server:

$ rails s

Open up localhost:3000.

Click New Order and create a new order with an order number. The order will be created asynchronously via a job scheduled by que.

Setup

$ bundle install
$ rake db:create
$ rake db:migrate

Details

See config/initializers/que.rb for details on how que is being configured. You can override the default configurations using environment variables.

For example,

$ QUE_MODE=sync WORKER_COUNT=8 rails s

License

© 2016 Josh Branchaud

This repository is licensed under the MIT license. See LICENSE for more details.

About

An example of using Que to schedule jobs in a Rails app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published