Skip to content

Unsure of sane defaults #372

@lcpriest

Description

@lcpriest

This might be a stupid question.

Is there a recommended default_worker_options for sidekiq-unique-jobs?

I've been testing a few different strategies and I'm still not sure what is the best strategy.

I have a bunch of jobs that should not be run at the same time, but can be run one after the other as there is some idempotency built-in. I have other jobs that run every day (fetching data from APIs), that have the exact same args.

I'm currenly using while_executing, but it seems to lock up my queues a lot.

Sidekiq.default_worker_options = {
  lock: :while_executing,
  lock_timeout: nil

Any recommendations would be appreciated - if this is an inappropriate questions, happy to have it insta-closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions