Skip to content

Commit

Permalink
Remove in-memory temporary files on task completion, fixes #40
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilucand committed Mar 9, 2024
1 parent 3c5b0fa commit ec68afe
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ colors = { package = "ggcat_colors", path = "../colors" }
utils = { package = "ggcat_utils", path = "../utils" }

fdlimit = "0.3.0"
parallel-processor = "0.1.13"
parallel-processor = "0.1.14"
rayon = "1.7.0"
dynamic-dispatch = "0.5.4"
parking_lot = "0.12.1"
Expand Down
1 change: 1 addition & 0 deletions crates/api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ fn create_tempdir(base_path: Option<PathBuf>) -> Option<PathBuf> {

fn remove_tempdir(temp_dir: Option<PathBuf>) {
if let Some(temp_dir) = temp_dir {
MemoryFs::remove_directory(&temp_dir, true);
let _ = std::fs::remove_dir_all(temp_dir);
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/assembler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ utils = { package = "ggcat_utils", path = "../utils" }
dynamic-dispatch = "0.5.4"

# Common libraries
parallel-processor = "0.1.13"
parallel-processor = "0.1.14"
streaming-libdeflate-rs = "0.1.5"
nightly-quirks = "0.1.2"

Expand Down
2 changes: 1 addition & 1 deletion crates/assembler_kmers_merge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ config = { package = "ggcat_config", path = "../config" }
utils = { package = "ggcat_utils", path = "../utils" }

# Common libraries
parallel-processor = "0.1.13"
parallel-processor = "0.1.14"
streaming-libdeflate-rs = "0.1.5"
nightly-quirks = "0.1.2"

Expand Down
2 changes: 1 addition & 1 deletion crates/assembler_minimizer_bucketing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
config = { package = "ggcat_config", path = "../config" }

# Common libraries
parallel-processor = "0.1.13"
parallel-processor = "0.1.14"
streaming-libdeflate-rs = "0.1.5"

# Static dispatch
Expand Down
2 changes: 1 addition & 1 deletion crates/cmdline/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dynamic-dispatch = "0.5.4"


# Common libraries
parallel-processor = "0.1.13"
parallel-processor = "0.1.14"
io = { package = "ggcat_io", path = "../io" }
colors = { package = "ggcat_colors", path = "../colors" }

Expand Down
2 changes: 1 addition & 1 deletion crates/colors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ config = { package = "ggcat_config", path = "../config" }
dynamic-dispatch = "0.5.4"

# Common libraries
parallel-processor = "0.1.13"
parallel-processor = "0.1.14"
streaming-libdeflate-rs = "0.1.5"
nightly-quirks = "0.1.2"

Expand Down
2 changes: 1 addition & 1 deletion crates/config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ edition = "2021"


# Common libraries
parallel-processor = "0.1.13"
parallel-processor = "0.1.14"
2 changes: 1 addition & 1 deletion crates/dumper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ config = { package = "ggcat_config", path = "../config" }
utils = { package = "ggcat_utils", path = "../utils" }

# Common libraries
parallel-processor = "0.1.13"
parallel-processor = "0.1.14"
streaming-libdeflate-rs = "0.1.5"
nightly-quirks = "0.1.2"

Expand Down
2 changes: 1 addition & 1 deletion crates/io/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ utils = { package = "ggcat_utils", path = "../utils" }


# Common libraries
parallel-processor = "0.1.13"
parallel-processor = "0.1.14"
streaming-libdeflate-rs = "0.1.5"
nightly-quirks = "0.1.2"

Expand Down
2 changes: 1 addition & 1 deletion crates/kmers_transform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ config = { package = "ggcat_config", path = "../config" }
utils = { package = "ggcat_utils", path = "../utils" }

# Common libraries
parallel-processor = "0.1.13"
parallel-processor = "0.1.14"
streaming-libdeflate-rs = "0.1.5"
nightly-quirks = "0.1.2"
hashes = { package = "ggcat_hashes", path = "../hashes" }
Expand Down
2 changes: 1 addition & 1 deletion crates/minimizer_bucketing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
config = { package = "ggcat_config", path = "../config" }

# Common libraries
parallel-processor = "0.1.13"
parallel-processor = "0.1.14"
streaming-libdeflate-rs = "0.1.5"
nightly-quirks = "0.1.2"

Expand Down
2 changes: 1 addition & 1 deletion crates/querier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ utils = { package = "ggcat_utils", path = "../utils" }
dynamic-dispatch = "0.5.4"

# Common libraries
parallel-processor = "0.1.13"
parallel-processor = "0.1.14"
streaming-libdeflate-rs = "0.1.5"
nightly-quirks = "0.1.2"

Expand Down
2 changes: 1 addition & 1 deletion crates/structs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ bincode = "1.3.3"
byteorder = "1.4.3"
config = { package = "ggcat_config", path = "../config" }
io = { package = "ggcat_io", path = "../io" }
parallel-processor = "0.1.13"
parallel-processor = "0.1.14"
serde = { version = "1.0.163", features = ["derive"] }


Expand Down
2 changes: 1 addition & 1 deletion crates/utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ edition = "2021"
parking_lot = "0.12.1"
rand = "0.8.5"

parallel-processor = "0.1.13"
parallel-processor = "0.1.14"
2 changes: 1 addition & 1 deletion libs-crates/parallel-processor-rs

0 comments on commit ec68afe

Please sign in to comment.