mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-10-06 02:48:22 +00:00
remove backend operation lock
This commit is contained in:
parent
b7cf564c68
commit
a0173de59e
1 changed files with 1 additions and 3 deletions
|
|
@ -11,7 +11,6 @@ class BackendOperation(FrontendOperation):
|
|||
It manages operation status, loop control, and integrates with a global context for thread management.
|
||||
"""
|
||||
operation_type: OPERATION_TYPE = "backend"
|
||||
operation_lock: threading.Lock = threading.Lock()
|
||||
|
||||
def __init__(self, interval_time: int, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
|
|
@ -54,8 +53,7 @@ class BackendOperation(FrontendOperation):
|
|||
|
||||
for target_name in self.target_names:
|
||||
try:
|
||||
with BackendOperation.operation_lock:
|
||||
self.run_operation(target_name=target_name, **kwargs)
|
||||
self.run_operation(target_name=target_name, **kwargs)
|
||||
except Exception as e:
|
||||
self.logger.exception(f"op_name={self.name} target_name={target_name} encounter exception. "
|
||||
f"args={e.args}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue