Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix Exceptions not being thrown in test harness #370

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions nodestream/pipeline/progress_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
pass


def raise_exception(ex):
raise ex

Check warning on line 17 in nodestream/pipeline/progress_reporter.py

View check run for this annotation

Codecov / codecov/patch

nodestream/pipeline/progress_reporter.py#L17

Added line #L17 was not covered by tests


def get_max_mem_mb():
"""Get the maximum memory used by the current process in MB.

Expand Down Expand Up @@ -54,6 +58,7 @@
callback=lambda _, record: results_list.append(record),
on_start_callback=no_op,
on_finish_callback=no_op,
on_fatal_error_callback=raise_exception,
)

def report(self, index, record):
Expand Down