Access instance inside a job #182
-
How do I access the instance inside a job? Ideally, I would want to do a |
Beta Was this translation helpful? Give feedback.
Answered by
shadowgate15
Jun 14, 2022
Replies: 1 comment 1 reply
-
I would probably use the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
abetoots
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would probably use the
workerMessageHandler
. This would then allow the job to send a message like{ event: 'add', data: JOB_CONFIG}
and then in theworkerMessageHandler
function you could callbree.add()
.