Skip to content

Commit

Permalink
Download manifests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
afwillia committed Feb 20, 2024
1 parent 829ae32 commit 94f1d21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions functions/dashboardFuns.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ get_dataset_metadata <- function(syn.store, datasets, ncores = 1, schematic_api=
modified_user = info$modifiedBy
)
}
}, mc.cores = 1)
}, mc.cores = ncores)
manifests
}, mc.cores = 1)
}, mc.cores = ncores)

manifest_dfs <- lapply(seq_along(metadata_list), function(x) metadata_list[[x]][[1]]$manifest_df)
manifest_info <- lapply(seq_along(metadata_list), function(x) metadata_list[[x]][[1]]$manifest_info)
Expand Down Expand Up @@ -127,7 +127,7 @@ get_dataset_metadata <- function(syn.store, datasets, ncores = 1, schematic_api=
manifest = list(manifest_df)
)
}
}, mc.cores = 1) %>% bind_rows()
}, mc.cores = ncores) %>% bind_rows()
}

# add empty dataset ids even if there are no manifests
Expand Down Expand Up @@ -284,7 +284,7 @@ get_metadata_nodes <- function(metadata, ncores = 1, schematic_api,
folder_id = c(manifest$FolderSynId),
n_miss = c(n_miss)
)
}, mc.cores = 1) %>% bind_rows()
}, mc.cores = ncores) %>% bind_rows()
}

}

0 comments on commit 94f1d21

Please sign in to comment.