Skip to content

Insert jobs from workers #407

Closed Answered by brandur
javirln asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @javirln, check out docs on getting a client from worker context:

https://riverqueue.com/docs/context-client

Another way to do this is to take your initialized client and make it available to all your workers through something like a shared, embedded struct.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bgentry
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #406 on June 28, 2024 12:41.