-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure the type of exit codes is None, int or ExitCode (#1681)
There was a bug in the execute method of the Waiting state of the JobProcess, that in the case of a TransportException, which would occur in the case of a SUBMISSIONFAILED or RETRIEVALFAILED, the returned exit code was a JobCalculationExitStatus enum instance and not the required integer or ExitCode. This would except the process due to the check in the Process.on_finish call. A similar problem existed in the execmanager.parse_results method which also did not guarantee the return of an exit code of a valid type. We now make sure to convert the bool, integer or ExitCode which can be returned by parse_results is converted to an ExitCode before it is returned.
- Loading branch information
Showing
2 changed files
with
19 additions
and
10 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