Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dashing_resque

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dashing_resque

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 11 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc