tunel.launcher package
Subpackages
Submodules
tunel.launcher.base module
- class tunel.launcher.base.ContainerLauncher(server, **kwargs)[source]
Bases:
Launcher
A container launcher has shared functions for launching a head node container.
- class tunel.launcher.base.Launcher(server, **kwargs)[source]
Bases:
object
A launcher is a base for executing commands.
- property assets
- property assets_dir
- property environ
Get envars
- property home
Get (or create) a local home
- property path
Get additions to the path
- prepare_render(app, paths)[source]
Given an app, prepare default variables (and custom args) to render
- property remote_assets_dir
- property remote_home
Get (or create) a remote home
- property remote_sockets
Get a remote sockets directory
- property remote_work
Get a remote work (must exist)
- property slug
- property username
Get the username
tunel.launcher.singularity module
tunel.launcher.slurm module
- class tunel.launcher.slurm.Slurm(server, **kwargs)[source]
Bases:
Launcher
A slurm launcher interacts with slurm
- get_machine(name, max_attempts=None)[source]
Given the name of a job, wait for the job to start and return the machine
- property modules_file
- property nodes_file
- print_updated_logs(logs_prefix, app, socket)[source]
Start a separate thread that regularly checks and prints logs (when there is an updated line)