Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update S3 path in file provenance #28

Merged
merged 2 commits into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion scripts/main/sts_synindex_external.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ replace_equal_with_underscore <- function(directory_path) {
synapser::synLogin(authToken = Sys.getenv('SYNAPSE_AUTH_TOKEN'))
config::get(config = "staging") %>% list2env(envir = .GlobalEnv)

unlink(x = c(AWS_PARQUET_DOWNLOAD_LOCATION,
AWS_ARCHIVE_DOWNLOAD_LOCATION,
PARQUET_FINAL_LOCATION),
recursive = TRUE,
force = TRUE)

# Get STS credentials for input data bucket -------------------------------
token <-
Expand Down Expand Up @@ -218,7 +223,7 @@ latest_commit_this_file <- paste0(latest_commit$html_url %>% stringr::str_replac

act <- synapser::Activity(name = "Indexing",
description = "Indexing external parquet datasets",
used = paste0("s3://", latest_archive),
used = paste0("https://s3.amazonaws.com/", latest_archive),
executed = latest_commit_this_file)

if(nrow(synapse_manifest_to_upload) > 0){
Expand Down
Loading