resque / resque/resque-scheduler

resque-scheduler (4.3.1) bug with rufus-scheduler (3.5.0)

Open
#649 7 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
1.7k
Forks
477
PR merge metrics
No merged PRs in 30d

Description

Hi,
This happens when it tries to start schedule from scheduler file,

NoMethodError: undefined method `next_time' for nil:NilClass
/app/vendor/bundle/ruby/2.3.0/gems/rufus-scheduler-3.5.0/lib/rufus/scheduler/jobs.rb:640:in `next_time_from'

cron type:

my_job_name:
  cron:  '/15 * * * *' # every 15 minutes
  queue: queue_name
  class: ActiveJob::QueueAdapters::ResqueAdapter::JobWrapper
  args:
    job_class: JobClassName
    queue_name: queue_name
  description: "This job runs every 15 minutes"

when I locked rufus-scheduler '~> 3.4.2' in gemfile, it was solved

Thanks,
Niko

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported resque-scheduler 4.3.1 and rufus-scheduler 3.5.0 combination, using the scheduler YAML example and the stack trace in rufus/scheduler/jobs.rb:640 as the reproduction path. Compare it with the working rufus-scheduler ~> 3.4.2 constraint; done means the cron schedule starts without the NoMethodError and the dependency behavior is covered by an appropriate verification.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.