get_script_fun {civis}R 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.


[Package civis version 3.0.0 Index]