Skip to contents

Note: When using a queue system, PEcAn queries each job individually every `check_interval` seconds. The default interval of ten seconds was chosen for small sets of jobs in a fast-moving queue, and if used for large runs it can create excessive load. If you expect the whole run to take hours, consider checking much less often (every few minutes?) instead.

Usage

start_model_runs(
  settings,
  write = TRUE,
  stop.on.error = TRUE,
  check_interval = 10
)

runModule_start_model_runs(settings, stop.on.error = TRUE, ...)

Arguments

settings

PEcAn settings object

write

(logical) Whether or not to write to the database. Default TRUE.

stop.on.error

logical: Kill entire run if any job throws an error?

check_interval

Time in seconds to wait between queries of qsub job status.

...

passed on to start_model_runs

Functions

  • runModule_start_model_runs(): A lightweight wrapper around `start_model_runs` that takes `write` from `settings` instead of as a separate argument.

Author

Shawn Serbin, Rob Kooper, David LeBauer, Alexey Shiklomanov

Examples

if (FALSE) { # \dontrun{
  settings <- PEcAn.settings::read.settings("pecan.xml")
  start_model_runs(settings)
} # }