Skip to contents

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

schedule data.frame created by build_schedule()

check_datetime

datetime against which to check the running of pipelines (default is current system time in UTC)

Value

frequency string

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.

Examples


suggest_orch_frequency(example_schedule)
#> [1] "30 mins"