check download configuration - improvements
If the download configuration (* .download) is missing because the NFS mount point is temporarily inaccessible, the download is considered to be disabled. In this case, the download process is killed, and this event is traced in the download log :
2020-01-23 18:40:54,611|INFO |27205|Download thread esa_MIR_SCNF1B is dead ! 2020-01-23 18:40:54,971|INFO |27205|Download thread 'esa_MIR_SCNF1B' terminated !
To avoid this behaviour, the download process must check many times that the moint point is accessible :
from ifr_lib.ifr_os import is_io_locked # check if the network folder is accessible (in case of NFS mounts) if not is_io_locked(<path_to_downloads_dir>, timeout=2.0): # check if the configuration file exists ... else: # continue with the same configuration # log trace with "WARNING" level instead of "INFO" log.warning("Download configuration directory is temporarily inaccessible !")