hitsz-ids / duetector

duetector🔍: Data Usage Extensible Detector for data usage observability.
https://dataucon.idslab.io/
Apache License 2.0
10 stars 8 forks source link

[BUG] Poll when shutdown #74

Closed wunder957 closed 1 year ago

wunder957 commented 1 year ago

Description

Call the function after shutdown event is set, avoid data loss

Motivation and Context

Currently shutdown will shut down the poller directly, and we should collect all the data before shutting it down.

How has this been tested?

see tests/test_poller.py

Types of changes

Checklist: