if error reached threshold
if result is error save data to cache
mysql
record video log to db
pollstream_process
if storage is reached threshold
Analysis_process
make video file save to ssd
read img file from ssd and judge
send message to read img file from ssd
detection_process
return result
update img parm data to db
get img data
send message to start task