Schked

Services & Skills

Share on

Usage

Ruby on Rails

.schked:

--require config/environment.rb

config/schedule.rb:

cron "*/30 * * * *", as: "CleanOrphanAttachmentsJob" do
  CleanOrphanAttachmentsJob.perform_later
end

If you have a Rails engine with own schedule:

engine-path/lib/foo/engine.rb:

module Foo
  class Engine < ::Rails::Engine
    initializer "foo" do |app|
      Schked.config.paths << root.join("config", "schedule.rb")
    end
  end
end

And run Schked:

bundle exec schked start

To show schedule:

bundle exec schked show
Author

In the same orbit

Explore more open source projects

Contact us

We’d love to hear from you! We’re not really all that evil, and we love discussing potential projects, intriguing ideas, and new opportunities. Complete the form below or drop us a line at surrender@evilmartians.com. Alternatively, schedule a Calendly appointment with us right now!

Martians at a glance
17
years in business

A product development consultancy that works with startups and established businesses, while also creating open source-based products and services