Skip to content

Commit

Permalink
Update error message on OMM
Browse files Browse the repository at this point in the history
Co-authored-by: Florian De Temmerman <[email protected]>
  • Loading branch information
johandahlberg and fbdtemme authored Jun 4, 2024
1 parent beb7058 commit 902117f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pixelator/cli/collapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def _handle_errors(jobs, executor):
# If we have an out of memory exception, make sure we exit with that.
if abs(exit_code) == 9:
logger.error(

Check warning on line 49 in src/pixelator/cli/collapse.py

View check run for this annotation

Codecov / codecov/patch

src/pixelator/cli/collapse.py#L48-L49

Added lines #L48 - L49 were not covered by tests
"One of the child processes was killed (exit code: 9). Usually this is caused "
"by a child process using to much memory. We will return an exit code of 137 "
"to indicate that the process was killed by the out of memory killer."
"One of the child processes was killed (exit code: 9). "
"Usually this is caused by the out-of-memory killer terminating the process. "
"The parent process will return an exit code of 137 to indicate that it terminated because of a kill signal in the child process."
)
sys.exit(137)
logger.error(

Check warning on line 55 in src/pixelator/cli/collapse.py

View check run for this annotation

Codecov / codecov/patch

src/pixelator/cli/collapse.py#L54-L55

Added lines #L54 - L55 were not covered by tests
Expand Down

0 comments on commit 902117f

Please sign in to comment.