A web interface for Clockwork
- see list of jobs
- monitor jobs
- disable jobs
🍊 Battle-tested at Instacart
Add this line to your application’s Gemfile:
gem "clockwork_web"And add it to your config/routes.rb.
mount ClockworkWeb::Engine, at: "clockwork"Be sure to secure the dashboard in production.
To monitor and disable jobs, hook up Redis in an initializer.
ClockworkWeb.redis = Redis.newSet the following variables in your environment or an initializer.
ENV["CLOCKWORK_USERNAME"] = "andrew"
ENV["CLOCKWORK_PASSWORD"] = "secret"authenticate :user, ->(user) { user.admin? } do
  mount ClockworkWeb::Engine, at: "clockwork"
endClockworkWeb.running?
ClockworkWeb.multiple?Change clock path
ClockworkWeb.clock_path = Rails.root.join("clock") # defaultTurn off monitoring
ClockworkWeb.monitor = falseView the changelog
Everyone is encouraged to help improve this project. Here are a few ways you can help:
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features
To get started with development:
git clone https://github.com/ankane/clockwork_web.git
cd clockwork_web
bundle install
bundle exec rake test