loopingjob_definitions

pilot.user.generic.loopingjob_definitions.allow_loopingjob_detection()[source]

Should the looping job detection algorithm be allowed? The looping job detection algorithm finds recently touched files within the job’s workdir. If a found file has not been touched during the allowed time limit (see looping job section in util/default.cfg), the algorithm will kill the job/payload process.

Returns:

boolean.

pilot.user.generic.loopingjob_definitions.remove_unwanted_files(workdir, files)[source]

Remove files from the list that are to be ignored by the looping job algorithm.

Parameters:

workdir – working directory (string). Needed in case the find command includes the workdir in the list of

recently touched files. :param files: list of recently touched files (file names). :return: filtered files list.