- dispatch.process_dcmsend_result.create_arg_parser() ArgumentParser
Creates and returns the ArgumentParser object.
- dispatch.process_dcmsend_result.parse(result_file) Dict
Parses the dcmsend result file and returns a python dictionary.
- dispatch.retry.increase_retry(source_folder, retry_max, retry_delay) bool
Increases the retries counter and set the wait counter to a new time in the future. :return True if increase has been successful or False if maximum retries has been reached
Helper functions for dispatching processed cases
- dispatch.status.is_ready_for_sending(folder) Optional[Task]
Checks if a case in the outgoing folder is ready for sending by the dispatcher.
No lock file (.lock) should be in sending folder and no error file (.error), if there is one copy/move is not done yet. Also at least some dicom files should be there for sending. Also checks for a task.json file and if it is valid.