We have a unattended workflow that interacts with an app and it can take up to 30 seconds to process a file, so we we schedule to bot to be triggered every 5 minutes and there are a couple of files to process, it would take a minute to process them and it would remain idle for 4 minutes before being triggered once again
If we had 100 files to process, it could take 50 minutes so what would happen in this scenario?
- Does orchestrator try to launch another instance of the bot?
- Does it terminate the existing bot running and create a new instance?
- Does Orchestrator send the “Stop” command and the bot finishes processing the current transaction and then it closes and a new instance of the bot is triggered?
- Does it ignore it while it is busy and will only trigger a bot again if not busy.
Ideally, I would like (4) to be the valid one but I just need confirmation. If it isn’t, is there a way to achieve this?
I’m just concerned that things could get messed up if terminated by orchestrator or if multiple instances are launched.