Skip to content

mongodb: Allow replacement of jobs in the past (when queue is inactive) #6

@thecodedrift

Description

@thecodedrift

DocMQ currently restricts replacement to jobs in the future to avoid altering a job that should already be processing. However, we can likely change the driver calls to allow the replace if:

  • deleted is null (has not completed)
  • and visible is in the past (as any acks on the job would also fail since they didn't ack or ping in time)

This would allow you to pause the queue, do inserts, and not run into collisions for replacing a job in the past that never ran.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions