SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Are jobs currently running

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Are jobs currently running
Author Message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Are jobs currently running Reply with quote
Hi
Is there any way to test whether jobs are currently running in scheduler 3.4.x windows? I'm trying to code for the a secondary scheduler that has been failed over to checking whether the primary is up again yet and gracefully rolling back into standby mode without interrupting any jobs that may have started.

Thanks
Tue Dec 11, 2007 12:12 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6500

Post Reply with quote
You can use the API to remotely connect to the scheduler and get list of running or queued jobs. See GetMonitor or GetJobQueueMonitor, GetJobQueueList API methods.
Tue Dec 11, 2007 12:50 am View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
But there's nothing in JAL that can do it?
Wed Dec 12, 2007 4:19 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6500

Post Reply with quote
There are no direct methods for that. Indirectly you can check for existence of .Q files in queue subfolders and their dates. Take a look at RemoteDir command. To get a list of queues you can use RegistryList. There is an example in the online help demonstrating how to get the list of agents. Similar thing can be used for Queues.

Code:
// declare script variables
Dim( q_name_list, string )

// get list of queues from the registry
RegistryList( "HKEY_LOCAL_MACHINE\SOFTWARE\SoftTree Technologies, Inc.\24x7 Scheduler\3.0\Queues", "SUBKEYS", q_name_list)


You can also create a VBScript job to get remote job list using the COM API. From JAL you can also run VBScript code and have that code get remote job monitor and save results to a local file, then read it from the file
VBScriptExecute("dynamic script here")

Examples for COM API or Java API usage are available COM API Reference and Java API Reference. There is really nothing complicated in using these interfaces. It is almost as simple as JAL.
Wed Dec 12, 2007 5:35 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.