Concurrent Job

sarienti

Active Member
Hi to all
Before to launch an UBE I need to control if another job is
running (the same UBE launched by another people).
Could anyone suggest me the best (and easy) way to do this???

Thank in advance for help
Stefano
 
The single threaded queue is a good idea. Antoher way that I have done this is to use a record in a custom table to indicate it is running. Use table IO to check the flag in the record to see if it is running. If not then set the flag in the record to "1" or what ever value you decide to use to indicate that it is currently running. After it is done running set the flag to "0" to indicate that it is done. Since you check this flag everytime it runs you can know if it's currently running before continuing.
|
The one draw back to this method is that if the process ever errors out, or crashes, or the CNC cancels the job in the middle the flag never get's reset to 0 to indicate it's not running. Need to provide application to reset if necessary.
|
 
Back
Top