This fork of dj_mon
gem was created to add a Reset all button which resets (deletes existing job and creates same job with same name and parameters) all present jobs.
A Rails engine based frontend for Delayed Job. It also has an iPhone app.
- A quick video tour
- Sandbox Demo URL
- Username:
dj_mon
- Password:
password
- Demo Source
Add this line to your application's Gemfile:
gem 'dj_mon'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dj_mon
- Supports
activerecord
andmongoid
. - Supports
ruby 1.8.7
or higher foractiverecord
.delayed_job_mongoid
depends onmongoid 3.0
which needs ruby 1.9, so there is no support forruby 1.8.7
for that.
If you are using Rails =< 3.1, or if config.assets.initialize_on_precompile
is set to false, then add this to config/environments/production.rb
.
config.assets.precompile += %w( dj_mon/dj_mon.js dj_mon/dj_mon.css)
Mount it in routes.rb
mount DjMon::Engine => 'dj_mon'
DJ Mon has NO authentication by default, so unless you are running a trusted environment or wants the world to see your delayed jobs, you better add some.
This is done by defining a monkey patch proc in a Rails initializer, which is then executed inside any controller class definitions that DJ Mon contains.
E.g. in config/initializers/dj_mon.rb
YourApp::Application.config.dj_mon.auth_monkey_patch = -> {
before_action :totally_simple_authentication
def totally_simple_authentication
if params[:totally_secret_token] == env['DJ_MON_TOKEN']
cookies[:dj_mon_authenticated] = true
end
cookies[:dj_mon_authenticated].present?
end
}
Now visit http://localhost:3000/dj_mon
and profit!
- The iPhone app is written in RubyMotion. Source.
- On App Store
- Mostly in the iPhone app. Mentioned in the README.
To run the test suite, execute the following commands from the project root:
gem install bundler
bundle install
rake test:prepare
rake