mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-31 01:06:59 +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
76b0328eb1
commit
07ad362854
@ -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