gateaux_job_runner: Call arbitrary gateaux jobs from R

View source: R/gateaux_job_runner.R

gateaux_job_runnerR Documentation

Call arbitrary gateaux jobs from R

Description

Call arbitrary gateaux jobs from R

Usage

gateaux_job_runner(
  pars_list = NULL,
  report_name,
  server = "gorbachev.io",
  JWT,
  log_jobs = T,
  prefix = "jobs",
  append = TRUE,
  cpus = "",
  memory = ""
)

Arguments

pars_list

A named list of named lists of environment variables and job requirements - one list per job. Each named list defines a job tag (name), with up to three sub-lists: * pars (named environment variables passed to the job), * wants (named optional job dependencies), * requires (named required job dependencies).

report_name

The name of the job

JWT

String: Authentication token.

log_jobs

Export job parameters to logfile?

prefix

for the list, can include path

append

append to existing file?

cpus

cpus for apparatchik, will override any gorbachev.yaml settings

memory

memory for apparatchik, will override any gorbachev.yaml settings#'

Server

The gateaux server url to use. defaults to gorbachev.io

Value

JSON API return

Author(s)

Dragonfly bakery

Examples

pars = list(Run1 = list(pars = list(Env1 = "This_env", Env2 = "That_env"), wants = list(Upstream_job = 1234), requires = list(Upstream_job2 = 4321)),
            Run2 = list(pars = list(Env1 = "That_env", Env2 = "This_env"), wants = list(Upstream_job = 2222), requires = list(Upstream_job2 = 4321)))
gateaux_job_runner(pars,
                   report_name = "bakeR-testreport",
                   JWT = JWT)

dragonfly-science/bakeR documentation built on June 23, 2024, 3:41 a.m.