fix(image-list): own job lifecycle and preserve worker preparation

This commit is contained in:
Robert Wojciechowski
2026-10-11 21:20:22 +00:00
parent 8e0ac3befe
commit a34969e6f3
12 changed files with 847 additions and 64 deletions
+1 -2
View File
@@ -5,7 +5,7 @@ from aiohttp import web
import server
from ..image_list.runtime import (
MAX_PAYLOAD_BYTES,
MAX_REQUEST_BYTES,
decode_result,
delete_worker_item,
set_master_result,
@@ -13,7 +13,6 @@ from ..image_list.runtime import (
)
prompt_server = server.PromptServer.instance
MAX_REQUEST_BYTES = MAX_PAYLOAD_BYTES * 2 + 1024 * 1024
async def _json_body(request):
+2
View File
@@ -607,6 +607,7 @@ def apply_participant_overrides(
master_url,
delegate_master,
prompt_index,
workflow_meta=None,
):
"""Return a prompt copy with hidden inputs configured for master/worker."""
is_master = participant_id == "master"
@@ -641,6 +642,7 @@ def apply_participant_overrides(
enabled_worker_ids,
job_id_map,
master_url,
workflow_meta=workflow_meta,
)
return prompt_copy
+1
View File
@@ -413,6 +413,7 @@ async def orchestrate_distributed_execution(
master_url,
delegate_master,
prompt_index,
workflow_meta=workflow_meta,
)
if delegate_master: