Skip to content

Attempts counter resets everytime on queue.next() #11

Description

@psawaikar
  1. Defined
    queue = MongoQueue(
    ... Connection(TEST_DB).doctest_queue,
    ... consumer_id="consumer-1",
    ... timeout=300,
    ... max_attempts=3)

  2. Then got job by ----- job = queue.next()

  3. Job has error ---- job.error("Error") ------- here attempts counter incremented to 2

  4. Then again got the same job by ----- job = queue.next() ------ but attempts counter got reset to 1

Question : how will the job be marked failed is attempts counter gets reset?

Activity

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

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