get_script_fun: Get a script function matching a job type.

Description Usage Arguments Details Value

View source: R/scripts.R

Description

Get a script function matching a job type.

Usage

1
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.


civisanalytics/civis-r documentation built on June 27, 2020, 7:25 a.m.