Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - SAW-1922: Add support to retry queue jobs on fail #157

Open
wants to merge 6 commits into
base: 0.7
Choose a base branch
from

Conversation

PaulMejiaFeliz
Copy link
Contributor

@PaulMejiaFeliz PaulMejiaFeliz commented Nov 8, 2021

Overview

Change queues declaration logic to support retries when the jobs fail. In order to achieve that this pull request updates the consumer to manually acknowledge or reject jobs. There are 2 possible scenarios:

  • When no delay is required add an exchange to Rabbitmq to handle falling jobs
  • When delay is required add a "nack handle" exchange that sends the failed jobs to a waiting queue with a "time to live" defined. After the time is up a "requeue handle" exchange sends the job back to the main queue.

src/Queue/Queue.php Show resolved Hide resolved
src/Queue/Queue.php Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants