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

Adding a worker to a specific queue #721

Closed
isaacdonaldson opened this issue Aug 27, 2024 · 3 comments
Closed

Adding a worker to a specific queue #721

isaacdonaldson opened this issue Aug 27, 2024 · 3 comments

Comments

@isaacdonaldson
Copy link
Contributor

Description

I couldn't find the relevant information, and while looking into the source code I could not find a way to add options to an AppWorker. This seems like it's needed to be able to specify which queue to put a job/worker in?

Looks like there is more than one way to do this: add sidekiq::WorkerOpts to loco::prelude for use in app, or add fn opts to the AppWorker trait to allow specifying an AppWorker with options.

My investigation was cursory so the above might not be true. It may also be the fact that specifying the queue is possible, but there are not docs about how to do that even though the ability to supply a custom queue is mentioned.

@jondot
Copy link
Contributor

jondot commented Aug 30, 2024

You're correct, I also spotted a fix for this, will push a fix and update here soon, thanks!

@jondot
Copy link
Contributor

jondot commented Sep 1, 2024

should be fixed in v0.8.0 (released now)

@jondot jondot closed this as completed Sep 1, 2024
@isaacdonaldson
Copy link
Contributor Author

isaacdonaldson commented Sep 18, 2024

Sorry to bring this back up @jondot, but this isn't quite what I meant. I ended up fixing it here (#759).

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

2 participants