Sha256: 011d1fa24d9e3eeb91417b735e74793f2934e13af2def38a5627966963ea52ce
Contents?: true
Size: 718 Bytes
Versions: 1
Compression:
Stored size: 718 Bytes
Contents
require File.expand_path('../boot', __FILE__) require 'que/web' map '/que' do run Que::Web end map '/success' do run lambda { |env| SuccessJob.enqueue 'arg1', {name: 'foo', age: 10} [200, {}, ['Success job enqueued']] } end map '/fail' do run lambda { |env| FailJob.enqueue 'arg1', {name: 'fail', age: 20} [200, {}, ['Failing job queued']] } end map '/delay' do run lambda { |env| SuccessJob.enqueue 'arg1', {name: 'delay', age: 30}, run_at: Time.now + 300 [200, {}, ['Delayed job queued']] } end map '/slow' do run lambda { |env| SlowJob.enqueue 'arg1', {name: 'delay', age: 30} [200, {}, ['Slow job queued']] } end run lambda { |env| [200, {}, ['Hello']] }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
que-web-0.1.0 | examples/rack/config.ru |