alter schedule timedelta (#1923)

Co-authored-by: jyong <jyong@dify.ai>
This commit is contained in:
Jyong 2024-01-04 18:10:16 +08:00 committed by GitHub
parent b88a8f7bb1
commit 2757494265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,11 +46,11 @@ def init_app(app: Flask) -> Celery:
beat_schedule = {
'clean_embedding_cache_task': {
'task': 'schedule.clean_embedding_cache_task.clean_embedding_cache_task',
'schedule': timedelta(minutes=1),
'schedule': timedelta(days=7),
},
'clean_unused_datasets_task': {
'task': 'schedule.clean_unused_datasets_task.clean_unused_datasets_task',
'schedule': timedelta(minutes=10),
'schedule': timedelta(days=7),
}
}
celery_app.conf.update(