Closed joshuap closed 7 months ago
Here's some additional feedback:
I later found that the function has some optional arguments that may help in this case : "raise_exceptions" and "logger". https://fastapi-utils.davidmontague.xyz/user-guide/repeated-tasks/
I didn't had time to test it with Honeybadger.
I did some digging into this one, Including the source code for fastapi_utils. The default behaviour is for errors to fail silently (And they don't get reported to honeybadger since these exceptions are caught by fastapi_utils) And indeed, there's an argument to change this behaviour by setting raise_exceptions to True and providing a logger. Honeybadger already provides a log handler that can be configured for this purpose.
Thank you @Kelvin4664. In that case, we should update our documentation (I created an issue to do that).
This is a bug report from a past user. @Kelvin4664 @subzero10 could we automatically report errors in this case? Or would it be better to manually try/catch the error in the function (and if so, can we update the docs)?