Skip to content

Instantly share code, notes, and snippets.

@kopylovvlad
Created November 6, 2016 19:20
Show Gist options
  • Save kopylovvlad/131aa08e9857316e3ae4d751386135a4 to your computer and use it in GitHub Desktop.
Save kopylovvlad/131aa08e9857316e3ae4d751386135a4 to your computer and use it in GitHub Desktop.
#app/workers/my_worker.rb
class MyWorker
include Delayed::RecurringJob
run_every 7.day
run_at ‘09:00am'
def perform
# Do work!
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment