[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:

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.

- Ian

Ian Chesal

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


Colin Leavett-Brown
Department of Physics & Astronomy
University of Victoria