Skip to content

Commit

Permalink
Merge pull request #47 from natcap/bugfix/logging-queue-46
Browse files Browse the repository at this point in the history
fixes #46, check for empty and updated history
  • Loading branch information
dcdenu4 authored Dec 11, 2020
2 parents fb11c50 + 371a4d4 commit 33df6c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Unreleased Changes
its database up to 5 minutes of continuous failures. This is to address
expected issues when many parallel threads may compete for an update.
Relevant information about why the database update fails is logged.
* Fixed an issue where the logging queue would always report an exception
even if the logging thread shut down correctly.

0.10.0 (2020-08-25)
-------------------
Expand Down
2 changes: 2 additions & 0 deletions taskgraph/Task.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ def __del__(self):
x = self._logging_queue.get_nowait()
LOGGER.debug(
"the logging queue had this in it: %s", x)
except queue.Empty:
break
except Exception:
LOGGER.exception(
"Expected an empty logging queue, but if the "
Expand Down

0 comments on commit 33df6c7

Please sign in to comment.