suggest_orch_frequency {maestro} | R Documentation |
Suggest orchestrator frequency based on a schedule
Description
Suggests a frequency to run the orchestrator based on the frequencies of the pipelines in a schedule.
Usage
suggest_orch_frequency(
schedule,
check_datetime = lubridate::now(tzone = "UTC")
)
Arguments
schedule |
MaestroSchedule object created by |
check_datetime |
datetime against which to check the running of pipelines (default is current system time in UTC) |
Details
This function attempts to find the smallest interval of time between all pipelines. If the smallest interval is less than 15 minutes, it just uses the smallest interval.
Note this function is intended to be used interactively when deciding how often to schedule the orchestrator. Programmatic use is not recommended.
Value
frequency string
Examples
if (interactive()) {
pipeline_dir <- tempdir()
create_pipeline("my_new_pipeline", pipeline_dir, open = FALSE)
schedule <- build_schedule(pipeline_dir = pipeline_dir)
suggest_orch_frequency(schedule)
}
[Package maestro version 0.6.1 Index]