mitre / multiscanner

Modular file scanning/analysis framework
http://multiscanner.readthedocs.io/
Other
617 stars 125 forks source link

Task can fail but still get marked as "Complete" in task DB #149

Open clenk opened 6 years ago

clenk commented 6 years ago

An error can occur in a storage handler, but since the handler runs in a separate thread the celery worker doesn't receive any exceptions raised by the storage handler, and will still log the task as Complete and store it as such in the task database. But then when you try to pull up the report, you can't because it wasn't stored.

A possible solution: https://gist.github.com/bsphere/f1e0a7d033dab2871c5c