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

i852 New worker to run resource intensive jobs #969

Merged
merged 21 commits into from
Feb 14, 2024

Conversation

bkiahstroud
Copy link
Contributor

Story

Refs

Adds an extra worker to both local development and actively used r2 deployments that runs a new Sidekiq queue called :auxiliary.

This new worker ("auxiliary worker") has higher resource limits in r2. This is so that we can run CreateLargeDerivativeJobs (i.e. ffmpeg for videos and audio files) without bogging down the default worker (see #955 for more details).

Notes

Similar PR in Adventist:

bkiahstroud and others added 21 commits February 12, 2024 16:30
Co-authored-by: Rob Kaufman <rob@notch8.com>
Because of the special way `extraDeploy` gets interpreted, fetching ENV
values using `$` will not work.
We will be reusing this pattern across several projects. Not every extra
worker will need increased resource limits, so we should use a more
generic name that can apply to various requirements.
Sidekiq queues without explicit weights are prioritized in the order
they are listed. Our auxiliary worker's primary goal is to process jobs
in the auxiliary queue, thus we want it to be the top priority.

[Sidekiq
docs](https://github.com/sidekiq/sidekiq/wiki/Advanced-Options#queues)
@bkiahstroud bkiahstroud merged commit 5b6c954 into main Feb 14, 2024
5 of 7 checks passed
@bkiahstroud bkiahstroud deleted the i852-new-worker-to-run-resource-intensive-jobs branch February 14, 2024 01:17
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