Skip to content

Commit

Permalink
fix: Cannot find declaration to go to CLEAN_DAY_SETTING (langgenius#1…
Browse files Browse the repository at this point in the history
…0157)

Co-authored-by: 刘江波 <liujiangbo1@xiaomi.com>
  • Loading branch information
2 people authored and JunXu01 committed Nov 9, 2024
1 parent 2330768 commit 2c3d35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/schedule/clean_embedding_cache_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@app.celery.task(queue="dataset")
def clean_embedding_cache_task():
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()
thirty_days_ago = datetime.datetime.now() - datetime.timedelta(days=clean_days)
while True:
Expand Down

0 comments on commit 2c3d35e

Please sign in to comment.