Skip to content

[Worker] Enqueue should return proper error on conflict #86

@spy16

Description

@spy16

Describe the bug
When worker.Enqueue() is called with a Job with an already existing ID, it simply returns the internal duplication error from the queue implementation (e.g., unique constraint

To Reproduce
Steps to reproduce the behavior:

  1. Enqueue a job with id x
  2. Enqueue another job with id x.

Expected behavior
A predefined error to indicate Conflict should be returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions