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

[HTCondor-users] Remove files when the job gets evicted or crashes



Hi,

My jobs create some lock files on a file server that are cleared automatically when the job completes, but remain if the job crashes or gets evicted by the user or a more important job.
I'm not sure what's the easiest way to do a post-job cleanup though,  should I use *USER_JOB_WRAPPER *for this? At the moment I store the list of lock files locally (not the locks themselves, just a text file with all lock file paths created by the job)  in the condor work directory of the executing machine.

Cheers,
Szabolcs Horvatth