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

Re: [HTCondor-users] How to return stdout and stderr upon job removal?



Hi Martin,

If you add My.SpoolOnEvict = False into the submit file of the job, then the jobs standard output and error will appear in the jobs working directory (or whatever path the outputs should go to) upon condor_rm or condor_hold.

For more information, for ON_EXIT_OF_EVICT the files will be transferred into the AP's spool directory and can retrieved via the condor_evicted_files command. However, that only helps when the job is held since the job specific spooled data is cleaned up during job removal, so they are not able to be fetched if just removed.

Hope this helps,
Cole Bollig

From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Kandes, Martin <mkandes@xxxxxxxx>
Sent: Friday, April 4, 2025 4:16 PM
To: htcondor-users@xxxxxxxxxxx <htcondor-users@xxxxxxxxxxx>
Subject: [HTCondor-users] How to return stdout and stderr upon job removal?
 
Hi all,

I have a job running on an Execute Point. If I want to kill the job, but also return the stdout and stderr in its current state, how can I do that? It seems like a simple condor_rm won't work even when the running job set when_to_transfer_output = ON_EXIT_OR_EVICT. 

Any help and/or insight here would be much appreciated.

Thanks,

Marty

--
Marty Kandes, Ph.D.
Computational & Data Science Research Specialist
High-Performance Computing User Services Group
San Diego Supercomputer Center