This is my scenario:
I got 2 database, one is onPrem and one is in Azure. Since these two can’t talk to each other directly (company security policies get in the way) I’ve created a bot that reads the daily data-dump from the in-house DB and writes it to the cloud-DB.
The final step is execute a complex stored procedure in the cloud-DB to create a daily report.
And here is the problem:
The last step takes ~20 and 45min to finish, during this time the bot is doing exactly nothing but wait for the query to finish. The whole error handling for the analysis-step is actually do inside the DB, so there is no need to wait for the result.
What I’m looking for:
An execute query activity that doesn’t wait for the result. Execute a statement with fire and forget.
Wanted to share my thought. can we create SQL trigger to execute the query and we can execute the trigger alone in the Uipath so that it will just execute the trigger and wont wait for the result. Not sure this helps to your question. thanks.
I solved this in a different way: I’ve created an Elastic Job Agent (free Azure feature).
That agent has a job configured with excutes my stored procedure.
The uipath robot is no longer calling "exec " and then waits till it’s finished (20-25min later). Instead it now calls "exec " which immediately returns and the process resumes and finishes without a 20-25min waiting period.
The elastic job agent is actually starting the job almost immediately so I’m not losing any time here.