A local call waiting for a slot is reached by a stop, a delete or a cancel and ends without running; what a call emits after its flow was stopped is dropped as its result is; a node run by hand whose flow is stopped or deleted tells its caller but publishes no node_error; cancelling a node also ends its calls on workers
Docs / docs (push) Successful in 33s
Playwright Tests / test-playwright (1, 2) (push) Successful in 3m45s
Playwright Tests / test-playwright (2, 2) (push) Successful in 2m47s
pre-commit / pre-commit (push) Successful in 3m44s
Test Backend / test-backend (3.12) (push) Failing after 5m55s
Test Backend / test-backend (3.14) (push) Failing after 5m31s
Compose Smoke Test / test-compose (push) Successful in 33s
Playwright Tests / merge-reports (push) Successful in 1m19s
Docs / docs (push) Successful in 33s
Playwright Tests / test-playwright (1, 2) (push) Successful in 3m45s
Playwright Tests / test-playwright (2, 2) (push) Successful in 2m47s
pre-commit / pre-commit (push) Successful in 3m44s
Test Backend / test-backend (3.12) (push) Failing after 5m55s
Test Backend / test-backend (3.14) (push) Failing after 5m31s
Compose Smoke Test / test-compose (push) Successful in 33s
Playwright Tests / merge-reports (push) Successful in 1m19s
This commit is contained in:
@@ -44,7 +44,7 @@ from fluksio.flow.namespace import (
|
||||
VERSION,
|
||||
)
|
||||
from fluksio.flow.nodes import Node
|
||||
from fluksio.flow.nodes.base import ARRIVED
|
||||
from fluksio.flow.nodes.base import ARRIVED, STARTED
|
||||
from fluksio.flow.queue import WorkQueue
|
||||
from fluksio.flow.state import MemoryState, StateBackend
|
||||
|
||||
@@ -1143,10 +1143,12 @@ class Pipeline:
|
||||
return restored or {}
|
||||
|
||||
token = ARRIVED.set(arrived)
|
||||
began = STARTED.set(ended)
|
||||
try:
|
||||
with logs.capture(collected):
|
||||
result = node.execute(inputs)
|
||||
finally:
|
||||
STARTED.reset(began)
|
||||
ARRIVED.reset(token)
|
||||
if self.ended(node.flow) != ended:
|
||||
# Its flow was stopped or deleted while it ran (`end_running`).
|
||||
@@ -1289,6 +1291,11 @@ class Pipeline:
|
||||
three thousand mid-node cascades would leave "the run has finished"
|
||||
with no meaning.
|
||||
"""
|
||||
started = STARTED.get()
|
||||
if started is not None and self.ended(node.flow) != started:
|
||||
# Its flow was stopped or deleted after the call began
|
||||
# (`end_running`), so this is dropped as its result will be.
|
||||
return
|
||||
self._observe_emission(node, outputs)
|
||||
passed, stale = self._throttled(node, outputs)
|
||||
if not passed:
|
||||
|
||||
Reference in New Issue
Block a user