Open ctb opened 10 months ago
if reading zips to pathlists, need to make sure temp_dir gets properly deleted. It should happen automatically when the variable goes out of scope, but maybe include a temp_dir.close()
just in case?
so there's a much simpler way via pyo3! I just enabled this in the directsketch
plugin:
py
/_py
from lib
to main function
use pyo3::prelude::*;
and call py.check_signals
in main function:
While running snakemake --profile
, the SLURM jobs running rust code like manysketch
or directsketch
will continue after the workflow is stopped from a workflow error.
The config.yaml
I was using may be found here -> https://github.com/dib-lab/portable-snakemake-workflows/blob/main/dotfiles/README.md
$ snakemake --version
7.32.4
my guess is that this behavior is related to Rust multithreaded apps not responding to signals properly, which is why I suggested colton post it here ;)
+1!
a potential approach using Arc
in
Cargo.toml
:Then, in each function, use this loop: