Open
Description
Hi,
thank you for your gem, i am excited to use it. however, there seems to be an issue when trying to schedule a job for multiple days..
my scheduled job is defined as
class UpdateInstrumentData
include Delayed::RecurringJob
run_every 1.week
run_at ['tuesday 01:00', 'wednesday 01:00', 'thursday 01:00', 'friday 01:00']
queue 'instruments'
def perform
instruments = Instrument.order(id: :asc).pluck(:symbol)
InstrumentPrice.import_historical_data(instruments)
end
end
and i get the error:
/delayed_job_recurring-0.3.8/lib/delayed/recurring_job.rb:113:in
block in next_future_time': undefined method
>' for #Array:0x07ea2e28 (NoMethodError)
it crashs here
def next_future_time(times)
times.select{|time| time > Time.now}.min
end
maybe i made a mistake in the job definition? though in your docs you do something similar:
MyTask.schedule(run_every: 1.week, run_at: ['sunday 8:00am', 'wednesday 8:00am'])
any idea what the issue is?
thanks,
Andreas
Metadata
Metadata
Assignees
Labels
No labels