Get a script function matching a job type.
get_script_fun(job, verb = c("list", "post"), fun_type = c("outputs", "logs"))
The correct output or log fetching function
(e.g. scripts_list_containers_runs_logs
) based on the job type.
output of jobs_get
one of "list"
or "post"
one of "logs"
or "outputs"
container and custom scripts both have the same job type, but can be distinguished
by a non-null fromTemplateId
.