Skip to content

How to implement a daily job for each user object? #144

Answered by bgentry
DavidS-ovm asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @DavidS-ovm, as of #88 you can now create a Client with an empty or incomplete Workers bundle and continue to use AddWorker to register additional workers up until the client has been started with Start() (as you've shown in your example). This was a more recent addition and most of the docs were written prior to this.

We've run into this issue of workers that want access to the client a few times and while what you've shown above is the main way I know to do it today, I agree with you that it's not ideal. The ugliness is part of what keeps us from wanting to show more examples of this usage in the docs, though clearly it's something we should try to improve.

Another idea I came up wit…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@DavidS-ovm
Comment options

@bgentry
Comment options

@DavidS-ovm
Comment options

Answer selected by DavidS-ovm
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