Skip to content

Version 6: lets you schedule job with missing arguments #351

@mathieujobin

Description

@mathieujobin

Describe the bug
when perform as required arguments, sidekiq normally returns an error when calling perform_async without any arguments, this is no longer the case with sidekiq_unique_jobs 6.0.6

Expected behavior
the ArgumentError should be raised in the process calling perform_async

Current behavior
jobs is sent to sidekiq to crash.

Worker class

class MyWorker
  include Sidekiq::Worker
  sidekiq_options lock: :until_executed, queue: :undefault
  def perform(args); end

  def self.unique_args(args)
    # the way you consider unique arguments
  end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions