From 6230f009373be6a021fa03b895e9ef8f23671b51 Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Thu, 26 Dec 2024 17:29:40 +0800 Subject: [PATCH] typo fix --- api/schedule/clean_messages.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/schedule/clean_messages.py b/api/schedule/clean_messages.py index 48bdc872f41e5c..5e4d3ec323e41d 100644 --- a/api/schedule/clean_messages.py +++ b/api/schedule/clean_messages.py @@ -28,7 +28,6 @@ def clean_messages(): plan_sandbox_clean_message_day = datetime.datetime.now() - datetime.timedelta( days=dify_config.PLAN_SANDBOX_CLEAN_MESSAGE_DAY_SETTING ) - page = 1 while True: try: # Main query with join and filter @@ -79,4 +78,4 @@ def clean_messages(): db.session.query(Message).filter(Message.id == message.id).delete() db.session.commit() end_at = time.perf_counter() - click.echo(click.style("Cleaned unused dataset from db success latency: {}".format(end_at - start_at), fg="green")) + click.echo(click.style("Cleaned messages from db success latency: {}".format(end_at - start_at), fg="green"))