yapf format
This commit is contained in:
parent
76c9339453
commit
138881dab8
4 changed files with 9 additions and 2 deletions
|
@ -3,6 +3,7 @@ from data.database import UseThenDisconnect
|
|||
from workers.gc.models_pre_oci import pre_oci_model as model
|
||||
from workers.worker import Worker
|
||||
|
||||
|
||||
class GarbageCollectionWorker(Worker):
|
||||
def __init__(self):
|
||||
super(GarbageCollectionWorker, self).__init__()
|
||||
|
@ -14,6 +15,7 @@ class GarbageCollectionWorker(Worker):
|
|||
with UseThenDisconnect(app.config):
|
||||
model.perform_garbage_collection()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
worker = GarbageCollectionWorker()
|
||||
worker.start()
|
||||
|
|
Reference in a new issue