Skip to content

Commit 6ae593f

Browse files
authored
Merge pull request #1055 from lyj715824/bugfix/superteam
Bugfix/superteam
2 parents 4b3189c + d9facf9 commit 6ae593f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

core/workflow/cache/event_registry.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,10 @@ def init_event(cls, event: Event) -> None:
119119

120120
@classmethod
121121
def lock_event(cls, event_id: str, sid: str, timeout: int = 180) -> None:
122-
get_cache_service().set(
122+
get_cache_service().set_ex(
123123
key=f"event_lock:{event_id}",
124124
value=f"locked_by_{sid}",
125+
expire_time=timeout,
125126
)
126127

127128
@classmethod

core/workflow/exception/errors/err_code.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ class CodeEnum(Enum):
313313
# 22200
314314

315315
# Engine errors
316-
ENG_PROTOCOL_VALIDATE_ERROR = (22300, "Workflow engine protocol validation failed")
317316
ENG_RUN_ERROR = (22301, "Workflow engine run failed")
318317
NODE_RUN_ERROR = (22302, "Node execution failed")
319318
NODE_RUN_TIMEOUT_ERROR = (22303, "Node execution timeout")

0 commit comments

Comments
 (0)