Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Controlling Java and Lotusscript agents

I created 2 agents, one made of Java and another made of Lotusscript. The java agent is scheduled to run every 5 minutes, while the lotusscript agent is scheduled to run every 15 minutes. Therefor there will come a time that they will simultaneously run. When that happens, the java agent must pause/wait until the lotusscript agent finished. I tried to simulate locking using Profile DOcuments and Environment Variables but to no avail. Is there a way that I can simulate locking between this two different agents? Please help. Thanks a lot!

Edit: I forgot to say that the 2 agents resides in TWO DIFFERENT databases, to complicate things more :(

like image 335
John Bautista Avatar asked Aug 01 '26 14:08

John Bautista


1 Answers

Why not writing a third Agent (maybe in an extra Database), which runs periodically every five Minutes, which starts the other two Agents:

  1. The Lotus Script Agent every time
  2. The Java Agent every third run

... then you are also in control of the run order, without any complicated lock mechanisms.

like image 68
spookycoder Avatar answered Aug 04 '26 03:08

spookycoder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!