fix(api): fix connection closing issue for event subscription

The previous implementation does not close the connection once
`WORKFLOW_PAUSED` event is met, which breaks the contract with
frontend.
This commit is contained in:
QuantumGhost
2026-01-21 15:29:00 +08:00
parent 20be1dd819
commit 004df1c159
3 changed files with 10 additions and 73 deletions

View File

@ -8,13 +8,13 @@ from core.workflow.nodes.human_input.entities import (
EmailRecipients,
ExternalRecipient,
)
from core.workflow.runtime import VariablePool
from services import human_input_delivery_test_service as service_module
from services.human_input_delivery_test_service import (
DeliveryTestContext,
DeliveryTestError,
EmailDeliveryTestHandler,
)
from core.workflow.runtime import VariablePool
def _make_email_method() -> EmailDeliveryMethod: