how to deal with long running scans?
Hi, I want to integrate fuglu with sandbox that scans files and tries to determine if file is malicious. Typical check algorithm:
- Post file to sandbox
- Wait 15-30 seconds
- Check if result is ready. If not - go to step 2
Usually analysis takes 2-5 minutes to complete.
So my question - what is the best way to implement a plugin in case like this with long running scans? My biggest fear is that a lot of emails will come at once and the whole thing will just freeze (due to insufficient number of workers).
Thanks!
P.S. I have another integration with sandbox in web application where results checked in a background task. If result is not ready the task is sent to retry with countdown.
Edited by Azimkhan