-
Notifications
You must be signed in to change notification settings - Fork 25
feat: timeouts #457
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
Open
tristan-f-r
wants to merge
21
commits into
Reed-CompBio:main
Choose a base branch
from
tristan-f-r:timeout-arg
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: timeouts #457
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
f81a33e
feat: timeout
tristan-f-r 0342b5c
feat: snakemake err checkpoint
tristan-f-r 841d242
fix: use timeout correctly
tristan-f-r 75fd7f1
fix: filter files w/ errors
tristan-f-r 7abd709
fix: correct timeout order
tristan-f-r e07c961
fix(cytoscape): specify optional timeout
tristan-f-r d5b7e18
chore(Snakefile): decheckpointify reconstruct
tristan-f-r 111e53f
perf(Snakefile): make is_error check not consume the entire file
tristan-f-r c2febff
Merge branch 'main' into timeout-arg
tristan-f-r cc46eed
docs: timeout
tristan-f-r 83c5ed0
docs: clarification on container_obj
tristan-f-r 71c1976
docs: remove the strange comment
tristan-f-r 6e60afe
refactor: use mark_error and is_error more often
tristan-f-r 7ce0580
Merge branch 'umain' into timeout-arg
tristan-f-r 699ddca
style: fmt
tristan-f-r 4e3c28f
docs: on errors
tristan-f-r a322f4d
fix: tests and such
tristan-f-r 641608f
feat: singularity timeouts
tristan-f-r c5ff6ad
docs: mention works with apptainer
tristan-f-r 208eb4a
fix: don't use capture_output and stderr in the same command
tristan-f-r 7a0c4f3
fix: use correct variable reference for reconstruct
tristan-f-r File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,21 @@ | ||
| ######## | ||
| Errors | ||
| ######## | ||
|
|
||
| By default, whenever SPRAS runs into a container error (i.e. an internal | ||
| algorithm error), the full workflow will fail. However, there are | ||
| certain designated errors where we don't want this to be the case (at | ||
| the moment, these designated errors are only container timeouts, but | ||
| this may be extended to heuristics in the future). | ||
|
|
||
| Due to the following design constraints: | ||
|
|
||
| - Snakemake does not have support for such errors (the closest being | ||
| ``--keep-going``, which unnecessarily runs failed runs) | ||
| - SPRAS occasionally outputs empty files as genuine output | ||
| - We need to log errors that happen for user knowledge | ||
|
|
||
| we opt to use a ``resource-info.json`` file, which keeps track of the | ||
| success/failure status at certain failable parts of the workflow. This | ||
| file contains whether or not this part of the workflow succeeded, and if | ||
| it failed, how it failed. |
This file contains hidden or 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 hidden or 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 @@ | ||
| ########## | ||
| Timeouts | ||
| ########## | ||
|
|
||
| SPRAS allows for per-algorithm timeouts, specified under the global | ||
| configuration file. For example, to give the AllPairs algorithm a 1 day | ||
| timeout: | ||
|
|
||
| .. code:: yaml | ||
|
|
||
| - name: "allpairs" | ||
| include: true | ||
| timeout: 1d | ||
|
|
||
| The timeout string parsing is delegated to `pytimeparse | ||
| <https://pypi.org/project/pytimeparse/>`__, which allows for more | ||
| complicated timeout strings, such as ``3d2h32m``. | ||
|
|
||
| **NOTE**: This feature only works with docker and apptainer/singularity | ||
| at the time of writing. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.