Just on principle, using AWA to kick off something that runs this frequently is a bad idea. AWA was never intended for that type of thing.
It is still an interesting problem though. I've experimented with wrapping the task inside of a workflow and the last task schedules the next invocation to run at a specific time in the future. But this doesn't work because AWA keeps track of parent-child relationships and after it goes 17 or so deep in tracking these relationships, it stops cold to protect you from undesirable infinite loops.
The problem with using an AWA script loop is that AWA presumes after a certain amount of looping that you are stuck in an undesirable loop, and it will force the script to pause periodically so that it won't consume all of AWA resources.
I suppose you could run a script once a day (or once an hour?) that pre-scheduled all of the desired runs for the day(?)
In reality though, something that runs for 40 seconds every minute really should be solved outside of AWA, like as a standalone service on a different server, or something like that.
------------------------------
Pete Wirfs
SAIF Corporation
Salem Oregon USA
------------------------------
Original Message:
Sent: 11-15-2021 04:49 AM
From: Mick Moses
Subject: Schedule job to run every 1 min
You could try something like:
:WHILE 1=1
: Call your function/object
: Pause 60
:ENDWHILE
or
Get the second part of the system time and if it's zero run your job and loop round that in stead
------------------------------
Mick Moses
Software Configuration Analyst
Lowell Financial Services
UK
Original Message:
Sent: 11-12-2021 06:18 PM
From: Amey
Subject: Schedule job to run every 1 min
Hello Team,
Problem -
We are exploring Automic workload automation (AWA) and we have one requirement where we need to execute job every one minute.
Note - job needs to trigger exact 1 min (means if job is schedule to trigger at 4:30 PM so it needs to trigger in between 4:30:00 PM - 4:30:05 PM )
Solution we tried -
We have tried to use execute recurring and selecting every 1 min option. but observed that jobs are triggering on every 1 min but observing that jobs are triggering at (04:30:15 PM , 04:31:16 PM or 4:32:18 PM), normally job completes in 40 seconds but some time if it runs for more than 45 seconds then we observing next generation time is impacting.
we have selected Generate Task at Runtime so that it will not take much time in gathering attributes values.
So is there any way where we can trigger jobs between 4:30:00 PM to 4:30:05 PM.
Really appreciate your help... Thank you in advance.