Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple instances - no support, use queues, decentralised runs or hacks #124

Closed
soorejmg opened this issue Apr 12, 2020 · 2 comments
Closed
Labels

Comments

@soorejmg
Copy link

Hi,
I am trying to develop a system where multiple users can make use of a tagui process automation. Idea was like this, invoke some web service call and then tagui process runs. Is it possible to open two chrome windows at a time, one for each user and work for each window. How can this be done? Any inputs pls..

Thanks
Soorej

@kensoh
Copy link
Member

kensoh commented Apr 12, 2020

Hi Soorej, that is technically not possible with upstream TagUI architecture. It was designed to prioritise on reliability and stability of execution (for there are production jobs running automation that take more than 10 hours, without issues).

Because of this design choice, there are in-built logic in the design that will restart processes before each run, and that also include Chrome process. Having multiple threads would disrupt the automation actions from another thread.

If you are building a web-service to manage that, this is definitely doable, on the condition that execution are piped into a queue and run consecutively, but not concurrently. If running consecutively is ok for your use case, you can take a look at how I implement TagUI's web-service here - https://github.com/kelaberetiv/TagUI/tree/pre_v6#api

Other ideas that can be explored would be asking users to install Python and then RPA for Python directly on their computers. If concern is automation execution disrupting their work, you can consider hacking the tool to increase execution speed. For eg this RPA Challenge, whre the hack cut down run time from 2 minutes to under 5 seconds - #120 (comment)

If concern is still work being disrupted, you can also look at hacking the tool to run in headless mode so that the Chrome web browser does not even appear, and see if that works for your users use scenarios - #109

@kensoh kensoh added the query label Apr 12, 2020
@kensoh kensoh changed the title Multipl tagui instances in Python Multiple TagUI instances in Python - not supported, consider distributed runs or hacks Apr 12, 2020
@kensoh kensoh changed the title Multiple TagUI instances in Python - not supported, consider distributed runs or hacks Multiple TagUI instances - not supported, consider distributed runs or hacks Apr 12, 2020
@kensoh kensoh changed the title Multiple TagUI instances - not supported, consider distributed runs or hacks Multiple TagUI instances - not supported, use queues, distributed runs or hacks Apr 12, 2020
@kensoh kensoh changed the title Multiple TagUI instances - not supported, use queues, distributed runs or hacks Multiple instances - not supported, use queues, distributed runs or hacks Apr 12, 2020
@kensoh kensoh changed the title Multiple instances - not supported, use queues, distributed runs or hacks Multiple instances - not supported, use queues, decentralised runs or hacks Apr 12, 2020
@kensoh kensoh changed the title Multiple instances - not supported, use queues, decentralised runs or hacks Multiple instances - no support, use queues, distribu runs or hacks Apr 12, 2020
@kensoh kensoh changed the title Multiple instances - no support, use queues, distribu runs or hacks Multiple instances - no support, use queues, decentralised runs or hacks Apr 12, 2020
@kensoh
Copy link
Member

kensoh commented Apr 15, 2020

Closing issue for now until further inputs!

@kensoh kensoh closed this as completed Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants