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

[HTCondor-users] Transfer output files also on Job removal?



Dear HTCondor experts,

I've been looking for a knob, but could not find one for this use case:
We'd love to transfer the output files of some jobs even in case of removal, i.e. condor_rm, or periodic_remove e.g. when a time limit is hit.

The example use case here are interactive Jupyter notebooks: We don't want to share a file system with all the resources the notebooks may run on,
and would love to use HTCondor file transfer to get things to and fro.
However, interactive jobs are usually either cancelled by a time limit (i.e. periodic_remove), or (in case of JupyterHub's batchspawner) by condor_rm,
so file transfer would be especially helpful for interactive use cases without shared file system.

So it burns down to this:
 Is there a way to also trigger file transfer on job removal (I have control over both schedd and submit file)?


I have for now tried to set:
 when_to_transfer_output = ON_EXIT_OR_EVICT
 TransferOutputFiles = jupyter
 ShouldTransferFiles = True
and if I parse the logs correctly, indeed this triggers a file transfer to SPOOL on the schedd node, but then the files are purged afterwards,
since the job was removed. Having them transferred back to the original place (or at least accessible) would be ideal in our case.

Cheers and thanks in advance,
	Oliver

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature