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

Make queue(s) & timeout(s) configurable for QueueChecker #269

Open
alessandroaussems opened this issue Aug 14, 2024 · 0 comments
Open

Make queue(s) & timeout(s) configurable for QueueChecker #269

alessandroaussems opened this issue Aug 14, 2024 · 0 comments

Comments

@alessandroaussems
Copy link

Please describe the feature you would like to see implemented.

It might happen that you have multiple queues configured on your installation. Ex: Routing of failed messages from async to async_failed. If so this async_failed queue is often ran manually as suggested in https://symfony.com/doc/current/messenger.html#saving-retrying-failed-messages

However these messages are than stuck and might trigger false positives. This could be fixed with modifying the query like:

SELECT available_at FROM messenger_messages WHERE available_at < UTC_TIMESTAMP() AND queue_name NOT LIKE "%failed%" ORDER BY available_at ASC LIMIT 1

Another option would be to make the queues you want to monitor with QueueChecked configurable in the plugin config.
Ex: Enter a comma seperated list of queues to monitor (async, ...)

Ideally a threshold can be set per queue, since their retry strategy & timeout might be different. https://symfony.com/doc/current/messenger.html#retries-failures

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

No branches or pull requests

1 participant