gpf_entrepot_toolbelt.utils.exit_program module¶
Exit a running program
- gpf_entrepot_toolbelt.utils.exit_program.fail_and_exit(work_dir: Path, error_message: str, package_title: str, package_version: str, package_exec_name: str) None ¶
Create output file with a created GpfOrchestratorParameters to indicate failures and exit program.
- Paramètres:
work_dir (str) – Input working directory. The folder must exist.
error_message (str) – Error message for logger
package_title (str) – package title specified in the metadata module (__about__.py)
package_version (str) – package version specified in the metadata module (__about__.py)
package_exec_name (str) – package executable name specified in the metadata module (__about__.py)