i6_core.rasr.command

class i6_core.rasr.command.RasrCommand

Mixin for Job.

NO_RETRY_AFTER_TIME = 600.0
RETRY_WAIT_TIME = 5.0
cleanup_before_run(cmd, retry, task_id, *args)
classmethod default_exe(exe_name)

Extract executable path from the global sisyphus settings

Parameters:

exe_name (str) –

Return type:

str

classmethod get_rasr_exe(exe_name, rasr_root, rasr_arch)
Parameters:
  • exe_name (str) –

  • rasr_root (str) –

  • rasr_arch (str) –

Returns:

path to a rasr binary with the default path pattern inside the repsoitory

Return type:

str

log_file_output_path(name, crp, parallel)
Parameters:
Return type:

Path

run_cmd(cmd: str, args: Optional[List[str]] = None, retries: int = 2, cwd: Optional[str] = None)
Parameters:
  • cmd

  • args

  • retries

  • cwd – execute cmd in this dir

run_script(task_id: int, log_file: ~typing.Union[str, <sisyphus.toolkit.RelPath object at 0x7f991c680490>], cmd: str = './run.sh', args: ~typing.Optional[~typing.List] = None, retries: int = 2, use_tmp_dir: bool = False, copy_tmp_ls: ~typing.Optional[~typing.List] = None)
classmethod select_exe(specific_exe, default_exe_name)
Parameters:
  • specific_exe (str|None) –

  • default_exe_name (str) –

Returns:

path to exe

Return type:

str

static write_config(config, post_config, filename)
Parameters:
  • config (rasr.RasrConfig) –

  • post_config (rasr.RasrConfig) –

  • filename (str) –

static write_run_script(exe, config, filename='run.sh', extra_code='', extra_args='')
Parameters:
  • exe (str) –

  • config (str) –

  • filename (str) –

  • extra_code (str) –

  • extra_args (str) –