• Tim Wickberg's avatar
    Handle file deletion for purge_old_job() in a separate thread. · b9719be2
    Tim Wickberg authored
    File deletion can be slow, especially when StateSaveLocation in on
    NFS or other network filesystems. Since purge_old_job() holds all
    the slurmctld write locks, this is especially performance sensitive.
    
    Moving this to an independent thread lets the slower filesystem
    cleanup happen without owning these locks. purge_old_job() then
    results in the purged job ids being queued in the purge_list.
    
    A race with the job id potentially wrapping around again is already
    prevented by _dup_job_file_test() in get_next_job_id().
    
    Bug 3763.
    b9719be2
To find the state of this project's repository at the time of any of these versions, check out the tags.