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

Update Documentation: Add details about how to vary queue priority #494

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

phil-6
Copy link
Contributor

@phil-6 phil-6 commented Oct 11, 2024

Summary:

Updates the documentation to add details about how to vary the queue based on the event.

It took me a while to figure out that the queue config option is evaluated in the context of the notification in app/models/noticed/deliverable/deliver_by.rb rather than in the context of the event.

@excid3
Copy link
Owner

excid3 commented Oct 14, 2024

Thanks @phil-6. I refactored this a bit to be 2 separate blocks of options, 1 for if/else which runs during the job, and the others which configure the job.

For anyone coming across this, see: https://github.com/excid3/noticed/blob/v2.4.3/app/models/noticed/deliverable/deliver_by.rb#L55-L61

@excid3 excid3 merged commit db7d51c into excid3:main Oct 14, 2024
45 checks passed
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