SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
How to identify which job to kill

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
How to identify which job to kill
Author Message
~Joe



Joined: 18 Dec 2003
Posts: 42

Post How to identify which job to kill Reply with quote

Hi,

How can you identify which job to kill. For instance when the scheduler launches I start there or 4 different 24x7 jobs that take hours to run. All the jobs show up in the Lower windows status bar but I have no way of knowing which job is which in task manager. Occasionally I need to preemptively stop a job before it completes processing. Any suggestions on how to do this?

The jobs are listed in Windows Task Manager but they are all listed ad 24x7. So far when I guess which job is the right one. (based on CPU utilization, memory used ect) I am WRONG.

Thank you

for the suggestion

~Joe



Thu Dec 18, 2003 3:20 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: How to identify which job to kill Reply with quote

I guess you are asking about detached script or database type jobs.
In the current version 3 and prior there is no built-in method available for identifying which system process belongs to which job. The scheduler knows this information but it is not displayed anywhere.

Version 4 will allow stopping, pausing and restarting jobs of any type right from the scheduler GUI.

Now, let's get back to the current version.

One of the solutions for this problem is to record process IDs in the job log or other log file.

Here is an example:
Dim PID, number
Dim message, string

Call "kernel32.dll", "GetCurrentProcessId", "uu", True, "", PID
Concat "Process ID: ", PID, message
LogAddMessageEx "INFO", @V"job_id", "@V"job_name"", message

... continue here with what you want this job to do ...

: Hi,

: How can you identify which job to kill. For instance when the scheduler
: launches I start there or 4 different 24x7 jobs that take hours to run.
: All the jobs show up in the Lower windows status bar but I have no way of
: knowing which job is which in task manager. Occasionally I need to
: preemptively stop a job before it completes processing. Any suggestions on
: how to do this?

: The jobs are listed in Windows Task Manager but they are all listed ad 24x7.
: So far when I guess which job is the right one. (based on CPU utilization,
: memory used ect) I am WRONG.

: Thank you

: for the suggestion

: ~Joe

Thu Dec 18, 2003 4:44 pm View user's profile Send private message
~Joe



Joined: 18 Dec 2003
Posts: 42

Post Re: How to identify which job to kill Reply with quote

Great. Thank you for this tip. I am glad I asked this early in my script development. Is there an ETA for the version 4.0 release?

Thank you

~Joe

: I guess you are asking about detached script or database type jobs.
: In the current version 3 and prior there is no built-in method available for
: identifying which system process belongs to which job. The scheduler knows
: this information but it is not displayed anywhere.

: Version 4 will allow stopping, pausing and restarting jobs of any type right
: from the scheduler GUI.

: Now, let's get back to the current version.

: One of the solutions for this problem is to record process IDs in the job log
: or other log file.

: Here is an example: Dim PID, number
: Dim message, string

: Call "kernel32.dll", "GetCurrentProcessId",
: "uu", True, "", PID
: Concat "Process ID: ", PID, message
: LogAddMessageEx "INFO", @V"job_id",
: "@V"job_name"", message

: ... continue here with what you want this job to do ...

Thu Dec 18, 2003 5:14 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: How to identify which job to kill Reply with quote

End of 1st quarter 2004

: Great. Thank you for this tip. I am glad I asked this early in my script
: development. Is there an ETA for the version 4.0 release?

: Thank you

: ~Joe

Thu Dec 18, 2003 6:27 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.