Skip to content

Access instance inside a job #182

Answered by shadowgate15
abetoots asked this question in Ideas
Discussion options

You must be logged in to vote

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 the workerMessageHandler function you could call bree.add().

Replies: 1 comment 1 reply

Comment options

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

Answer selected by abetoots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants