Regarding set intervals in flow designers automation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2025 03:01 AM
HI All,
anyone please help on this automation.
I am doing one orchestration on SNOW using Python developed script. we placed script in MID server and calling using flow designer. this script will do the application JOBs forcefully start and placed the output log in MID server particular path with ticket number. then we will patch that logs in pasted in work notes.
Now Barriers is - script complete time is totally defends on nature on the app job. sometimes may take seconds , minutes or days as well. so we have define intervals that first check after 3 minutes , 2nd check after 8 minutes then after every 10 minutes until JOB up.
example - if job takes 10 hours, so we need to update ticket first 3 minutes , 2nd 8th minute , next every 10 minutes.
now my question - how to define the this intervals in flow designer. if job completed with in 2 minutes then first interval i have to update the work notes , past the logs and close that.
if it takes 9 minutes, after 3 minutes i have to update notes saying " trying to make job UP" skipp the loop in next 2nd interval i need to update the entire logs and close.
if it takes 1 hours , same after 3 mnts work notes update skipp the loop , then after 8 mnts work notes and skipp the loop then followed every 10 mnts work notes need to be update until job up and once up paste the log and close.
thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2025 06:02 AM
@ack - You can see on step 4 I shared that as soon as you get status as complete just update the worknotes as per requirement and then end flow so flow will not move ahead and end running ahead.
If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.
Thanks & Regards
Viraj Hudlikar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 02:07 AM
HI @Viraj Hudlikar ,
issue here is , Log file is getting created in MID server after Python completed the action ( its totally vary from seconds , hours and days). Once logfile created i have standard statement in logfile so i can check and update. But here i have to update worknotes in 3 mnts , 5 mnts and nexy every 10 minuts if still script runs.