Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

alter schedule timedelta (#1923)

Jyong27574942650c
diff --git a/api/extensions/ext_celery.py b/api/extensions/ext_celery.py
index b2ff70518e2..ec3e360f095 100644
--- a/api/extensions/ext_celery.py
+++ b/api/extensions/ext_celery.py
@@ -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(