submit_flow: Submit a flow to the cluster

Description Usage Arguments Details Examples

View source: R/submit-flow.R

Description

Submit a flow to the cluster or perform a dry-run to check and debug issues.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
submit_flow(x, verbose = opts_flow$get("verbose"), ...)

## S3 method for class 'list'
submit_flow(x, verbose = opts_flow$get("verbose"), ...)

## S3 method for class 'flow'
submit_flow(
  x,
  verbose = opts_flow$get("verbose"),
  execute = FALSE,
  uuid,
  plot = TRUE,
  dump = TRUE,
  .start_jid = 1,
  ...
)

Arguments

x

a object of class flow.

verbose

logical.

...

Advanced use. Any additional parameters are passed on to submit_job function.

execute

logical whether or not to submit the jobs

uuid

character Advanced use. This is the final path used for flow execution. Especially useful in case of re-running a flow.

plot

logical whether to make a pdf flow plot (saves it in the flow working directory).

dump

dump all the flow details to the flow path

.start_jid

Job to start this submission from. Advanced use, should be 1 by default.

Details

NOTE: Even if you want to kill the flow, its best to let submit_flow do its job, when done simply use kill(flow_wd). If submit_flow is interrupted, files like flow_details.rds etc are not created, thus flowr looses the association of jobs with flow instance and cannot monitor, kill or re-run the flow.

Examples

1
2
3
## Not run: 
submit_flow(fobj = fobj, ... = ...)
## End(Not run)

flowr documentation built on March 3, 2021, 1:12 a.m.