Replies: 3 comments 7 replies
|
I'll let @wlandau answer with what he definitively recommends. It seems you could condition which reactive output is updated on the 'name' argument as you suggest. If But in short: you should not need a separate controller for each task, unless it actually makes sense to separate the resources for each. This would be if you want to ensure some instances of each task get done at the same time, even if for example you have a long backlog of one type of task to process. |
|
Thank you both for the clarification and suggestions. I think my use case is closer to the promise-like scenario. So I am probably going to look at working with mirai directly. |
|
I think this example shows the kind of pattern I need. I am hoping to run concurrent jobs in the background, but keep the main shiny process active. And make sure that each This generally works, although sometimes I get |
Uh oh!
There was an error while loading. Please reload this page.
Hi @wlandau-lilly and @shikokuchuo Thanks for the great package. I've recently started using it in shiny.
I am trying to start a single controller, but submit various tasks to it. In shiny, for example, I'd have task 1 on button 1 and task 2 on button 2. Then, I'd like to
pushboth tasks (different functions, different data/globals), to the same controller. I thought this would just work, but I see that when I poll task 2 withpop(like in theshinyvignette), I get the result of the concurrently running task 1.I saw the
nameargument to push. Is this meant to be used to parse the output of pop to check if task named X is complete?Or am I better of creating separate controllers for each task (and terminating them).
What would be your advice? Thanks!
All reactions