0.0
No commit activity in last 3 years
No release in over 3 years
Provides resque jobs/widgets for Dashing
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
>= 0
~> 10.0
>= 0

Runtime

 Project Readme

DashingResque

This gem provides widgets and jobs to displayed queued/failed Resque jobs in Dashing.

Installation

Add this line to your application's Gemfile:

gem 'dashing_resque'

Add this to your config.ru:

require 'dashing_resque'
require 'sinatra'
DashingResque.init

Require the scripts in your application.coffee:

#= require dashing_resque/assets/widgets

Require the styles in your application.css:

//=require dashing_resque/assets/widgets

Schedule the jobs in jobs/resque.rb

DashingResque::Jobs::FailedJobs.schedule '30s', first_in: 0
DashingResque::Jobs::QueuedJobs.schedule '30s', first_in: 0

Use the widgets in your dashboard:

<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
  <div data-id="resque_queued_jobs" data-view="ResqueList" data-title="Queued Resque Jobs" data-total-prefix="Total: "></div>
</li>

<li data-row="1" data-col="2" data-sizex="1" data-sizey="1">
  <div data-id="resque_failed_jobs" data-view="ResqueList" data-title="Failed Resque Jobs" data-total-prefix="Total: "></div>
</li>

Configuration

Configure the redis url in config/resque.html:

development:
  redis_url: redis://localhost:6379
production:
  redis_url: redis://someotherhost:6379

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/werliefertwas/dashing_resque.