Skip to content

Commit

Permalink
fix: Cannot find declaration to go to CLEAN_DAY_SETTING (#10157)
Browse files Browse the repository at this point in the history
Co-authored-by: 刘江波 <[email protected]>
  • Loading branch information
2 people authored and Yeuoly committed Nov 5, 2024
1 parent 007b561 commit d1c480a
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 d1c480a

Please sign in to comment.