Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Dec 26, 2024
1 parent 8339d2c commit 6230f00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/schedule/clean_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"))

0 comments on commit 6230f00

Please sign in to comment.