add clean_unused_datasets_task (#3057)

Co-authored-by: jyong <jyong@dify.ai>
This commit is contained in:
Jyong 2024-04-01 01:34:21 +08:00 committed by GitHub
parent e215aae39a
commit 1716ac562c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,7 @@ def init_app(app: Flask) -> Celery:
},
'clean_unused_datasets_task': {
'task': 'schedule.clean_unused_datasets_task.clean_unused_datasets_task',
'schedule': timedelta(days=7),
'schedule': timedelta(minutes=3),
}
}
celery_app.conf.update(

View File

@ -74,3 +74,4 @@ twilio==9.0.0
qrcode~=7.4.2
azure-storage-blob==12.9.0
azure-identity==1.15.0
lxml==5.1.0