mcflyhalf / nipo

A classroom (or any other room) attendance tracker that does not use facial recognition
6 stars 3 forks source link

Free up resources consumed by celery backend #65

Closed mcflyhalf closed 2 years ago

mcflyhalf commented 3 years ago

See https://docs.celeryproject.org/en/stable/getting-started/first-steps-with-celery.html#configuration that describes how storing results consumes resources and explains how to free them.

Assume that whenever a final call is made to a task (success or failure with error traceback) then this is the last time results are required and consequently delete resources using AsyncResult.forget().

This is a suggestion and if you are any wiser you may implement something else

mcflyhalf commented 2 years ago

Attempted fix with #66. To continue monitoring but possibly open a new issue if it recurs