mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-20 12:29:17 +08:00
fix: Cannot find declaration to go to CLEAN_DAY_SETTING (#10157)
Co-authored-by: 刘江波 <liujiangbo1@xiaomi.com>
This commit is contained in:
parent
007b561e32
commit
d1c480a7d8
@ -14,7 +14,7 @@ from models.dataset import Embedding
|
|||||||
@app.celery.task(queue="dataset")
|
@app.celery.task(queue="dataset")
|
||||||
def clean_embedding_cache_task():
|
def clean_embedding_cache_task():
|
||||||
click.echo(click.style("Start clean embedding cache.", fg="green"))
|
click.echo(click.style("Start clean embedding cache.", fg="green"))
|
||||||
clean_days = int(dify_config.CLEAN_DAY_SETTING)
|
clean_days = int(dify_config.PLAN_SANDBOX_CLEAN_DAY_SETTING)
|
||||||
start_at = time.perf_counter()
|
start_at = time.perf_counter()
|
||||||
thirty_days_ago = datetime.datetime.now() - datetime.timedelta(days=clean_days)
|
thirty_days_ago = datetime.datetime.now() - datetime.timedelta(days=clean_days)
|
||||||
while True:
|
while True:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user