File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,6 +45,18 @@ library(targets)
4545library(testthat )
4646library(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+
4860BYOC_MODE <- Sys.getenv(" BYOC_MODE" )
4961# set up logger and system environment variable BYOC_MODE
5062if (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
6275write_to_disk <- TRUE
You can’t perform that action at this time.
0 commit comments