Skip to content

Commit

Permalink
Load selected config file configuration in run-pipeline script instea…
Browse files Browse the repository at this point in the history
…d of in fetch_data script
  • Loading branch information
pranavanba committed May 1, 2024
1 parent d932f33 commit dc90f8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions pipeline/run-pipeline.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Get config variables
config::get(
file = "config/config.yml",
config = "staging"
) %>%
list2env(envir = .GlobalEnv)

# Fetch data
tictoc::tic(msg = "INFO: Fetch data")
source("scripts/fetch-data/fetch_data.R")
Expand Down
7 changes: 0 additions & 7 deletions scripts/fetch-data/fetch_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ library(dplyr)

cat("Fetching data\n")

# Get config variables
config::get(
file = "config/config.yml",
config = "prod"
) %>%
list2env(envir = .GlobalEnv)

synLogin()

# Get input files from synapse
Expand Down

0 comments on commit dc90f8c

Please sign in to comment.