mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 06:55:57 +08:00
fix: update notice for users for clear-orphaned-file-records and remove-orphaned-files-on-storage commands (#18864)
This commit is contained in:
parent
136995d2a1
commit
bed47dffb9
@ -869,6 +869,15 @@ def clear_orphaned_file_records():
|
|||||||
click.echo(
|
click.echo(
|
||||||
click.style("This cannot be undone. Please make sure to back up your database before proceeding.", fg="yellow")
|
click.style("This cannot be undone. Please make sure to back up your database before proceeding.", fg="yellow")
|
||||||
)
|
)
|
||||||
|
click.echo(
|
||||||
|
click.style(
|
||||||
|
(
|
||||||
|
"It is also recommended to run this during the maintenance window, "
|
||||||
|
"as this may cause high load on your instance."
|
||||||
|
),
|
||||||
|
fg="yellow",
|
||||||
|
)
|
||||||
|
)
|
||||||
click.confirm("Do you want to proceed?", abort=True)
|
click.confirm("Do you want to proceed?", abort=True)
|
||||||
|
|
||||||
# start the cleanup process
|
# start the cleanup process
|
||||||
@ -1008,7 +1017,16 @@ def remove_orphaned_files_on_storage():
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
click.echo(
|
click.echo(
|
||||||
click.style("This cannot be undone. Please make sure to back up your database before proceeding.", fg="yellow")
|
click.style("This cannot be undone. Please make sure to back up your storage before proceeding.", fg="yellow")
|
||||||
|
)
|
||||||
|
click.echo(
|
||||||
|
click.style(
|
||||||
|
(
|
||||||
|
"It is also recommended to run this during the maintenance window, "
|
||||||
|
"as this may cause high load on your instance."
|
||||||
|
),
|
||||||
|
fg="yellow",
|
||||||
|
)
|
||||||
)
|
)
|
||||||
click.confirm("Do you want to proceed?", abort=True)
|
click.confirm("Do you want to proceed?", abort=True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user