[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Running a HOOK_JOB_EXIT



Hi Ian, Thanks for yor quick reply. I did a quick test of STARTD_JOB_HOOK_KEYWORD = ALL just before your note came and of course it didn't work. I'm just trying your version... Thanks, Colin.

Ian Chesal wrote:
Hi Colin,

On Thursday, June 16, 2011 at 4:42 PM, Colin Leavett-Brown wrote:

I am trying to run HOOK_JOB_EXIT at the conclusion of my job, but it
appears that the hook is never run. I have created a simple job whose
output file (x.out) accurately details my problem:

You're missing the <Keyword>_ part of the configuration setting. It's believe it's non-optional.

Your full config setup should look more like:

STARTER_JOB_HOOK_KEYWORD = MYHOOK
MYHOOK_HOOK_JOB_EXIT = /usr/local/bin/munin-node-condor-job-exit

If you write to STDERR in your hook it should show up in the StarterLog.<slot> file for the machine the hook ran on. That can help debug whether or not the hook actually got tripped at the end of the job.

Regards,
- Ian

---
Ian Chesal

Cycle Computing, LLC
Leader in Open Compute Solutions for Clouds, Servers, and Desktops
Enterprise Condor Support and Management Tools

http://www.cyclecomputing.com
http://www.cyclecloud.com
http://twitter.com/cyclecomputing

--
Colin Leavett-Brown
Department of Physics & Astronomy
University of Victoria
250-721-7728