Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix: avoid erroneous too early deletion of parent directories in case…
… of failed jobs (thanks to @SichongP). (#1601) * fix: avoid erroneous too early deletion of parent directories in case of failed jobs. * fmt * fix test handling * skip win test * dbg: try setting nodes to None
- Loading branch information
1 parent
cc7e0e3
commit b0917e6
Showing
6 changed files
with
74 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import time | ||
|
||
rule all: | ||
input: | ||
['out/A.txt', 'out/B.txt'], | ||
|
||
rule A: | ||
output: | ||
out= 'out/A.txt', | ||
run: | ||
time.sleep(10) | ||
with open(output.out, 'w') as fout: | ||
fout.write('done') | ||
|
||
rule B: | ||
output: | ||
'out/B.txt', | ||
run: | ||
time.sleep(5) | ||
raise Exception("Artificially failing rule B, A should go on and finalize properly.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters