Skip to content

Commit

Permalink
Merge pull request #498 from MaximumQuiet/bugfix/mini_exception_stuck
Browse files Browse the repository at this point in the history
Add exception call to AsyncResult after task failing
  • Loading branch information
coleifer committed Mar 3, 2020
2 parents 830770f + d04143f commit 7d00929
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions huey/contrib/mini.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def _execute(self, fn, args, kwargs, async_result):
ret = fn(*args, **kwargs)
except Exception as exc:
logger.exception('task %s failed' % fn.__name__)
async_result.set_exception(exc)
raise
else:
duration = time.time() - start
Expand Down

0 comments on commit 7d00929

Please sign in to comment.