Il 27/03/19 19:51, Todd Tannenbaum ha scritto:
On 3/27/2019 12:21 PM, David Rebatto wrote:Hi, I noticed that vanilla jobs restarting after preemption overwrite the output of previous execution. Is there a way to instruct them to *append* to output file instead?By "output file" above, I assume you mean the job's stdout as defined by the "output=filename" line in your submit file?
Yes, see below.
Are you using HTCondor's file transfer or a shared file system?
File transfer, the jobs are flocking away from the submission
If you are using HTCondor's file transfer, the issue is likely the output from previous executions is not being transferred back upon preemption to the submit machine from the execute machine. I think you can achieve what you want by adding the following line to your submit file: when_to_transfer_output = ON_EXIT_OR_EVICT
I have it in the submit file, and it is working. Here's the
(stripped) submit file:
universe = vanilla
The job prints some debug information on stdout, its real output
on 'squares.txt', and a checkpoint in 'checkpoint.txt' whenever it
gets a SIGTERM.
I attach the full submit file and the script, maybe I'm doing something wrong in there.
Description: Firma crittografica S/MIME