Skip to content

Commit 03c8e7f

Browse files
committed
functional checkpoint before cleanup
1 parent 1634be2 commit 03c8e7f

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

runner/app/live/pipelines/comfyui.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ async def initialize(self, **params):
106106
logging.info(f"Initializing ComfyUI Pipeline with prompt: {new_params.prompt}")
107107

108108
# Get dimensions from workflow if it's a dict
109+
width = params.get('width')
110+
height = params.get('height')
109111

110112
if width is None or height is None:
111113
if isinstance(new_params.prompt, dict):

runner/app/live/streamer/protocol/trickle.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ async def start(self, params: dict = None):
2929
self.publish_queue = queue.Queue[OutputFrame]()
3030
metadata_cache = LastValueCache[dict]() # to pass video metadata from decoder to encoder
3131

32+
if params is None:
33+
params = {}
34+
3235
#TODO fix this default value issue
3336
output_width = params.get('width', 512)
3437
output_height = params.get('height', 512)

runner/app/live/streamer/streamer.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ async def start(self, params: dict):
4646
self.request_id, self.stream_id, params, self
4747
)
4848

49+
if params is None:
50+
params = {}
51+
4952
params['width'] = params.get('width', self.output_width)
5053
params['height'] = params.get('height', self.output_height)
5154

@@ -58,11 +61,12 @@ async def start(self, params: dict):
5861
run_in_background("ingress_loop", self.run_ingress_loop()),
5962
run_in_background("egress_loop", self.run_egress_loop()),
6063
run_in_background("report_status_loop", self.report_status_loop()),
61-
run_in_background("control_loop", self.run_control_loop()),
6264
]
6365
# auxiliary tasks that are not critical to the supervisor, but which we want to run
6466
# TODO: maybe remove this since we had to move the control loop to main tasks
65-
self.auxiliary_tasks: list[asyncio.Task] = []
67+
self.auxiliary_tasks: list[asyncio.Task] = [
68+
run_in_background("control_loop", self.run_control_loop()),
69+
]
6670
self.tasks_supervisor_task = run_in_background(
6771
"tasks_supervisor", self.tasks_supervisor()
6872
)

0 commit comments

Comments
 (0)