Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:until_and_while_executing not processing queued jobs after executing #355

Closed
glister opened this issue Dec 4, 2018 · 1 comment
Closed
Assignees

Comments

@glister
Copy link

glister commented Dec 4, 2018

Describe the bug
Job takes ~15 seconds to complete

  1. T-0 - Queue job with params ABC
  2. T-5s - Queue job with params ABC
  3. T-10s - Queue job with params ABC

Expected behavior

  • First job immediately starts
  • Second job queues but doesn't start
  • Third job doesn't queue
  • Second job starts after first job completes

Current behavior
Each job starts as soon as queued, job 1 actually executes and finishes after 15 seconds. Jobs 2 and 3 start but don't execute and never actually execute even after job 1 finishes, they just wait indefinitely.

Worker class

class ContactAssignmentWorker
  include Sidekiq::Worker
  sidekiq_options :retry => 3, :backtrace => true, lock: :until_and_while_executing, lock_timeout: nil

  def perform(contact_provider_id)
    #process
  end
end

Additional context
Bizarrely if I queue the same job again after job 1 has finished and jobs 2 and 3 are still waiting indefinitely, job 2 starts executing and the new job takes it's place waiting indefinitely

@glister glister changed the title :until_and_while_executing not processing queued jobs while executing :until_and_while_executing not processing queued jobs after executing Dec 4, 2018
@mhenrixon
Copy link
Owner

This should be fixed by v6.0.7, let me know how the new version is working out for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants