Enhance CLI options and idle-killer functionality

- Added a `--update` option to the `up` command in the CLI for forced updates during warm ACTIVE states.
- Improved the idle-killer logic with new functions to check for reusable credentials and refresh settings on existing remote credentials.
- Enhanced the `seed_civitai` function to implement caching for model jobs, optimizing the provisioning process.
- Updated the installation script for Ollama to prevent unnecessary restarts when the service configuration has not changed.
- Added diagnostics for model job caching and improved error handling in various functions.
This commit is contained in:
Leonid Pershin
2026-08-21 11:22:14 +03:00
parent d3d689052d
commit 241ada62cb
7 changed files with 300 additions and 9 deletions
+6 -1
View File
@@ -460,6 +460,11 @@ def up(
"--no-update",
help="Не делать git pull SwarmUI и установленных extensions",
),
force_update: bool = typer.Option(
False,
"--update",
help="Принудительно git pull даже на warm ACTIVE (по умолчанию warm без pull)",
),
keep_on_fail: bool = typer.Option(
False,
"--keep-on-fail",
@@ -627,7 +632,7 @@ def up(
flavor=flavor,
yes=yes,
adopt=adopt,
update=False if no_update else None,
update=(False if no_update else True if force_update else None),
confirm=confirm,
ask=None if yes else ask,
log=log,