Skip to content

Commit 9d37930

Browse files
authored
refactor: remove not exist event (#422)
1 parent 7ac36a4 commit 9d37930

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

oocana/oocana/context.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from dataclasses import asdict
33
from .data import BlockInfo, StoreKey, JobDict, BlockDict, BinValueDict, VarValueDict
44
from .mainframe import Mainframe
5-
from .handle import HandleDef, OutputHandleDef
5+
from .handle import OutputHandleDef
66
from typing import Dict, Any, TypedDict, Optional, Callable, Mapping, Literal
77
from types import MappingProxyType
88
from base64 import b64encode
@@ -833,10 +833,6 @@ def event_callback(payload: Dict[str, Any]):
833833
progress = payload.get("progress")
834834
if progress is not None:
835835
run_progress_callback(progress)
836-
elif payload.get("type") == "SubflowBlockProgress":
837-
progress = payload.get("progress")
838-
if progress is not None:
839-
run_progress_callback(progress)
840836
elif payload.get("type") == "SubflowBlockFinished":
841837
error = payload.get("error")
842838
if error is None:

0 commit comments

Comments
 (0)