crew_class_launcher_pbs: *[Maturing]* PBS/TORQUE launcher class

crew_class_launcher_pbsR Documentation

[Maturing] 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

Methods

Public methods

Inherited methods

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
name

Character 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(), crew_options_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")
}

crew.cluster documentation built on April 15, 2025, 1:34 a.m.