Scanner

class crt_runner.scanner.Scanner(config=None)

Scan folders to determine whether CRT should be run

has_all_required_files(institute=None)

Indicate wheter all required files are present

Parameters:institute (str) – The institute to run this for
Return bool:True if all files are present, False otherwise
path_for_file(institute=None, file=None)

Create path for given file type and institute

Parameters:
  • institute (str) – Institute file needed for
  • file (srt) – Type of file. Accepted values are ‘cm’,’collab’ and ‘user_settings’
Return str:

Path to expected file

scan_folder(institute)

Run CRT command if inputs are more recent than time of last run

Parameters:institute (str) – Institute to scan folder for
send_message_for_missing_files(institute=None)

Send message for each missing file

Parameters:institute (str) – The institute to run this for
sync_and_scan_institute_folders()

Scan all institute folders

Note

Scan does not start if config file indicates that it is currently running

Previous topic

Readme

Next topic

Perl Execution

This Page