get_script_fun: Get a script function matching a job type.

View source: R/scripts.R

get_script_funR Documentation

Get a script function matching a job type.

Description

Get a script function matching a job type.

Usage

get_script_fun(job, verb = c("list", "post"), fun_type = c("outputs", "logs"))

Arguments

job

output of jobs_get

verb

one of "list" or "post"

fun_type

one of "logs" or "outputs"

Details

container and custom scripts both have the same job type, but can be distinguished by a non-null fromTemplateId.

Value

The correct output or log fetching function (e.g. scripts_list_containers_runs_logs) based on the job type.


civis documentation built on April 1, 2023, 12:01 a.m.