| crew_class_launcher_pbs {crew.cluster} | R Documentation |
PBS/TORQUE launcher class
Description
R6 class to launch and manage PBS/TORQUE workers.
Details
See crew_launcher_pbs().
Attribution
The template files at
https://github.com/mschubert/clustermq/tree/master/inst
informed the development of the crew launcher plugins in
crew.cluster, and we would like to thank
Michael Schubert for developing clustermq and releasing it under
the permissive Apache License 2.0.
See the NOTICE and README.md files in the crew.cluster
source code for additional attribution.
Super classes
crew::crew_class_launcher -> crew.cluster::crew_class_launcher_cluster -> crew_class_launcher_pbs
Active bindings
pbs_cwdSee
crew_launcher_pbs().pbs_log_outputSee
crew_launcher_pbs().pbs_log_errorSee
crew_launcher_pbs().pbs_log_joinSee
crew_launcher_pbs().pbs_memory_gigabytes_requiredSee
crew_launcher_pbs().pbs_coresSee
crew_launcher_pbs().pbs_walltime_hoursSee
crew_launcher_pbs().
Methods
Public methods
Inherited methods
crew::crew_class_launcher$active()crew::crew_class_launcher$booting()crew::crew_class_launcher$call()crew::crew_class_launcher$done()crew::crew_class_launcher$errors()crew::crew_class_launcher$forward()crew::crew_class_launcher$launch()crew::crew_class_launcher$rotate()crew::crew_class_launcher$scale()crew::crew_class_launcher$set_name()crew::crew_class_launcher$settings()crew::crew_class_launcher$start()crew::crew_class_launcher$summary()crew::crew_class_launcher$tally()crew::crew_class_launcher$terminate()crew::crew_class_launcher$terminate_workers()crew::crew_class_launcher$unlaunched()crew::crew_class_launcher$wait()crew.cluster::crew_class_launcher_cluster$launch_worker()crew.cluster::crew_class_launcher_cluster$terminate_worker()
Method new()
PBS/TORQUE launcher constructor.
Usage
crew_class_launcher_pbs$new( name = NULL, seconds_interval = NULL, seconds_timeout = NULL, seconds_launch = NULL, seconds_idle = NULL, seconds_wall = NULL, tasks_max = NULL, tasks_timers = NULL, reset_globals = NULL, reset_packages = NULL, reset_options = NULL, garbage_collection = NULL, launch_max = NULL, tls = NULL, verbose = NULL, command_submit = NULL, command_terminate = NULL, script_directory = NULL, script_lines = NULL, pbs_cwd = NULL, pbs_log_output = NULL, pbs_log_error = NULL, pbs_log_join = NULL, pbs_memory_gigabytes_required = NULL, pbs_cores = NULL, pbs_walltime_hours = NULL )
Arguments
nameSee
crew_launcher_pbs().seconds_intervalseconds_timeoutseconds_launchSee
crew_launcher_pbs().seconds_idleSee
crew_launcher_pbs().seconds_wallSee
crew_launcher_pbs().tasks_maxSee
crew_launcher_pbs().tasks_timersSee
crew_launcher_pbs().reset_globalsSee
crew_launcher_pbs().reset_packagesSee
crew_launcher_pbs().reset_optionsSee
crew_launcher_pbs().garbage_collectionSee
crew_launcher_pbs().launch_maxSee
crew_launcher_pbs().tlsSee
crew_launcher_pbs().verboseSee
crew_launcher_pbs().command_submitSee
crew_launcher_pbs().command_terminateSee
crew_launcher_pbs().script_directorySee
crew_launcher_pbs().script_linesSee
crew_launcher_pbs().pbs_cwdSee
crew_launcher_sge().pbs_log_outputSee
crew_launcher_pbs().pbs_log_errorSee
crew_launcher_pbs().pbs_log_joinSee
crew_launcher_pbs().pbs_memory_gigabytes_requiredSee
crew_launcher_pbs().pbs_coresSee
crew_launcher_pbs().pbs_walltime_hoursSee
crew_launcher_pbs().
Returns
an PBS/TORQUE launcher object.
Method validate()
Validate the launcher.
Usage
crew_class_launcher_pbs$validate()
Returns
NULL (invisibly). Throws an error if a field is invalid.
Method script()
Generate the job script.
Usage
crew_class_launcher_pbs$script(name)
Arguments
nameCharacter of length 1, name of the job. For inspection purposes, you can supply a mock job name.
Details
Includes everything except the worker-instance-specific
job name and the worker-instance-specific
call to crew::crew_worker(), both of which get inserted at
the bottom of the script at launch time.
Returns
Character vector of the lines of the job script.
Examples
if (identical(Sys.getenv("CREW_EXAMPLES"), "true")) {
launcher <- crew_launcher_pbs(
pbs_cores = 2,
pbs_memory_gigabytes_required = 4
)
launcher$script(name = "my_job_name")
}
See Also
Other pbs:
crew_controller_pbs(),
crew_launcher_pbs()
Examples
## ------------------------------------------------
## Method `crew_class_launcher_pbs$script`
## ------------------------------------------------
if (identical(Sys.getenv("CREW_EXAMPLES"), "true")) {
launcher <- crew_launcher_pbs(
pbs_cores = 2,
pbs_memory_gigabytes_required = 4
)
launcher$script(name = "my_job_name")
}