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.

add clean_unused_datasets_task (#3057)

Jyong1716ac562ccd
diff --git a/api/extensions/ext_celery.py b/api/extensions/ext_celery.py
index b27105f4d01..89a09247630 100644
--- a/api/extensions/ext_celery.py
+++ b/api/extensions/ext_celery.py
@@ -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(
diff --git a/api/requirements.txt b/api/requirements.txt
index c534d369685..0c7d568aa73 100644
--- a/api/requirements.txt
+++ b/api/requirements.txt
@@ -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
\ No newline at end of file