Skip to content

Is it possible to have the worker run in a separate process or is this a non-goal? #97

Answered by bgentry
LasseJacobs asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @LasseJacobs, the workers can indeed run in a different process and in general they should. However you do need to have the same workers defined on both the enqueueing side and the worker side if you want to be able to enqueue and work jobs. The Workers config is used to map your Worker definition to its Kind() based on the corresponding JobArgs definition. When enqueueing, this value is encoded into the database and used on the downstream Client to know what Worker code to run for that particular job.

I hope that makes sense! We’ll think about what we can do to improve the docs in this regard.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LasseJacobs
Comment options

Answer selected by bgentry
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 #96 on December 03, 2023 17:54.