diff --git a/R/run_api.R b/R/run_api.R index e0245e7..ea4e976 100644 --- a/R/run_api.R +++ b/R/run_api.R @@ -19,7 +19,7 @@ run_api <- function(config, ..., .background = FALSE) { db <- new_db_pool(config) withr::defer(pool::poolClose(db)) - if(.background) { + if (.background) { future::plan(future.callr::callr) } else { diff --git a/avg_days_to_ready.png b/avg_days_to_ready.png index 11b2618..0d844f7 100644 Binary files a/avg_days_to_ready.png and b/avg_days_to_ready.png differ diff --git a/inst/scripts/reporting.R b/inst/scripts/reporting.R index 7893d49..7f8dea1 100644 --- a/inst/scripts/reporting.R +++ b/inst/scripts/reporting.R @@ -176,8 +176,8 @@ plot_avg_days_to_ready <- function(data, result) { # Main script -start_date <- as_date("2023-09-01") -end_date <- rollback(as_date("2023-10-01")) +start_date <- as_date("2023-10-01") +end_date <- rollback(as_date("2023-11-01")) data <- load_preprocess_data( start_date = start_date,