mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 12:49:06 +00:00
server: fix tests
This commit is contained in:
@@ -106,6 +106,14 @@ class PipelineRunner(BaseModel):
|
||||
if not self.pipeline:
|
||||
self.pipeline = await self.create()
|
||||
|
||||
if not self.pipeline:
|
||||
# no pipeline created in create, just finish it then.
|
||||
await self._set_status("ended")
|
||||
self._ev_done.set()
|
||||
if self.on_ended:
|
||||
await self.on_ended()
|
||||
return
|
||||
|
||||
# start the loop
|
||||
await self._set_status("started")
|
||||
while not self._ev_done.is_set():
|
||||
|
||||
Reference in New Issue
Block a user