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:
@@ -315,6 +315,15 @@ def cmd_up(
|
||||
state.server_name = getattr(existing, "name", None)
|
||||
if status == "ACTIVE":
|
||||
if state.bootstrapped and state.floating_ip:
|
||||
# Warm re-up: skip git pull/stop cascade unless --update.
|
||||
if update is None:
|
||||
do_update = False
|
||||
log(
|
||||
"warm ACTIVE — без git pull SwarmUI/extensions "
|
||||
"(нужен свежий: --update)"
|
||||
)
|
||||
else:
|
||||
do_update = update
|
||||
log("сервер уже ACTIVE — второй GPU не создаём")
|
||||
state.phase = "bootstrapping"
|
||||
save_state(state)
|
||||
|
||||
Reference in New Issue
Block a user