Open mofojed opened 6 months ago
It should actually probably kill the server instead of just log an error, as there's no guarantee the state isn't broken at that point. Submitters of tasks can decide to try/catch the error if it's not catastrophic to the state of the system.
Description
If you call
submit_task
with a function that raises an error, the error seems to get swallowed up and is not logged anywhere. This makes it difficult to debug, or even be aware that a problem has occurred.Steps to reproduce
def my_task(): print("XXX my_task start") raise NotImplementedError("XXX my_task raising an error")
submit_task("concurrent", my_task)