MVP Systems - Support
Home
Search All
Go
Advanced Search
Search
Tags
Glossary
Welcome Guest
(
Login
|
Register
)
Latest Additions
Most Popular
Knowledgebase
Downloads
Documentation
Submit Ticket
Home
»
Knowledgebase
»
JAMS
»
Killing a Runaway Job
Killing a Runaway Job
Killing a Runaway Job
JAMS makes it easy to kill a Runaway Job process through the use of a Notification Job.
Simply create a Job, called KillRunaway in this example, using the PowerShell Execution Method with the following Source:
param($JAMS_NOTIFY_JAMS_ENTRY, $JAMS_NOTIFY_REASON)
if ($JAMS_NOTIFY_REASON -eq
'RUNAWAY'
)
{
write-host
"Killing runaway entry $JAMS_NOTIFY_JAMS_ENTRY"
Add-PSSnapin MVPSI.JAMS -erroraction SilentlyCOntinue
Stop-JAMSEntry $JAMS_NOTIFY_JAMS_ENTRY -confirm:$false
}
More information on JAMS_NOTIFY_REASON:
The reason for the notifications. This parameter could be: COMPLETED, FAILED, SHORT, RUNAWAY, STALLED or MISSED_WINDOW.
http://www.mvpsi.com/doc/JAMSClient/NotificationParameters.html
Rate this Article:
Add Your Comments
Name:
*
Email Address:
Web Address:
Verification Code:
*
Details
Last Modified:
Friday, March 26, 2010
Last Modified By:
SheilaE
Type:
HOWTO
Rated 5 stars based on 1 vote
Article has been viewed 805 times.
Options
Send by email...
Email Article
Print Article
Bookmark Article
Social Bookmarks...
Social Bookmarks
Comments RSS
Export As PDF
Powered By InstantKB.NET 2011 © 2012
Execution: 0.160.
10 queries.
Compression Disabled.