-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework _get_error in simple_error_handler to give more information
Before (in pytest output, with htex launch_cmd="/bin/false"): ``` Exception: STDOUT: Found cores : 8 Launching worker: 1 ``` After: ``` parsl.jobs.errors.TooManyJobFailuresError: Error 1: EXIT CODE: 1 STDOUT: Found cores : 8 Launching worker: 1 ``` * Fix counting so it counts even when js.message is None * Add exit code * Use a new error subclass rather than Exception * Pluralise messages in for no-messages string and remove brackets '[No error message received]' vs 'No error messages received'
- Loading branch information
1 parent
eb7ffe9
commit 8e01cb9
Showing
2 changed files
with
19 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from parsl.errors import ParslError | ||
|
||
|
||
class TooManyJobFailuresError(ParslError): | ||
"""Indicates that executor is shut down because of too many block failures. | ||
""" | ||
pass |
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