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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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
push
both 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 theshiny
vignette), I get the result of the concurrently running task 1.I saw the
name
argument 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!
Beta Was this translation helpful? Give feedback.
All reactions