idmtools_slurm_utils.cli module

Handles CLI portion of idmtools-slurm-bridge.

Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.

idmtools_slurm_utils.cli.setup_loggers(config_directory: Path, console_level: int, file_level: int)[source]

Setup loggers.

Parameters:
  • config_directory – Directory where config lives

  • console_level – Level to log to console

  • file_level – Level to log to file

Returns:

None

idmtools_slurm_utils.cli.existing_process_running(pid_file: Path)[source]

Existing Process running.

Parameters:

pid_file

Returns:

None

idmtools_slurm_utils.cli.main()[source]

CLI main.

idmtools_slurm_utils.cli.cleanup(*args, **kwargs)[source]

Cleanup pid when user tries to kill process.

Parameters:

config_directory – The base config directory