boxine / django-huey-monitor

Django based tool for monitoring huey task queue: https://github.com/coleifer/huey
GNU General Public License v3.0
86 stars 20 forks source link

preventing ZeroDivisionError in throughput #143

Closed Skrattoune closed 6 months ago

Skrattoune commented 6 months ago

I just spent almost one week trying to figure out the origin of a seamingly random error which afected my code ...

sometime, the difference between execute_dt and update_dt was so small that dividing by the difference led to a ZeroDivisionError when displaying the task name in task log...

stupid and difficult to spot error corrected through this PR

jedie commented 6 months ago

fixed in https://github.com/boxine/django-huey-monitor/pull/148

codecov-commenter commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 67.95%. Comparing base (2d37f25) to head (915d2ab). Report is 4 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #143 +/- ## ======================================= Coverage 67.95% 67.95% ======================================= Files 36 36 Lines 749 749 Branches 88 88 ======================================= Hits 509 509 Misses 240 240 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.