Skip to content

Commit 8bef498

Browse files
authored
Merge branch 'development' into refactor-mh
2 parents 2245256 + 46af7d6 commit 8bef498

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

SDL_process/run_sdl.r

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ library(targets)
4545
library(testthat)
4646
library(crew)
4747

48+
# Include reporting of last run date of ACADME
49+
dplyr::tbl(
50+
denodo_connect,
51+
dbplyr::in_schema("sdl", "sdl_byoc_acadme_load_detail")
52+
) %>%
53+
collect() %>%
54+
# Optional: Format the date to look clean first
55+
mutate(load_str = format(load_date, "%Y-%m-%d %H:%M:%S")) %>%
56+
pwalk(function(data_mart, load_str, ...) {
57+
logger::log_info("{data_mart} loaded at {load_str}")
58+
})
59+
4860
BYOC_MODE <- Sys.getenv("BYOC_MODE")
4961
# set up logger and system environment variable BYOC_MODE
5062
if (tolower(BYOC_MODE) %in% c("true", "t")) {
@@ -55,8 +67,9 @@ if (tolower(BYOC_MODE) %in% c("true", "t")) {
5567
BYOC_MODE <- FALSE
5668
}
5769

58-
run_id <- Sys.getenv("run_id")
59-
run_date_time <- Sys.getenv("run_date_time")
70+
# run_id <- Sys.getenv("run_id")
71+
# run_date_time <- Sys.getenv("run_date_time")
72+
run_date_time <- script_run_time
6073

6174

6275
write_to_disk <- TRUE

0 commit comments

Comments
 (0)