Clockwork Web

A web interface for Clockwork

  • see list of jobs
  • see last run
  • disable jobs

Screenshot, demo, and better UI coming soon

Installation

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 see the last run and disable jobs, hook up Redis.

ClockworkWeb.redis = Redis.new

Basic Authentication

Set the following variables in your environment or an initializer.

ENV["CLOCKWORK_USERNAME"] = "andrew"
ENV["CLOCKWORK_PASSWORD"] = "secret"

Devise

authenticate :user, lambda {|user| user.admin? } do
  mount ClockworkWeb::Engine, at: "clockwork"
end

Customize

Change clock path

ClockworkWeb.clock_path = Rails.root.join("clock") # default

TODO

  • demo
  • better design

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help: