Sha256: 570e8cca9d467b42cdf90b9fab0fb565e4606a2af62a375c13bb52d3e54d381e
Contents?: true
Size: 491 Bytes
Versions: 7
Compression:
Stored size: 491 Bytes
Contents
class <%= class_name %>Task < Scheduler::SchedulerTask environments :all # environments :staging, :production every '10s' # other examples: # every '24h', :first_at => Chronic.parse('next midnight') # cron '* 4 * * *' # cron style # in '30s' # run once, 30 seconds from scheduler start/restart def run # Your code here, eg: # User.send_due_invoices! # use log() for writing to scheduler daemon log log("I've sent invoices!") end end
Version data entries
7 entries across 7 versions & 3 rubygems