mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-06 08:16:00 +00:00
[dev] fix if name not in g context
This commit is contained in:
parent
4de11a746d
commit
51c8d25f68
1 changed files with 0 additions and 3 deletions
|
|
@ -47,9 +47,6 @@ class CliJob(object):
|
|||
worker_config_dict = json.load(f)
|
||||
|
||||
for worker_name, worker_config in worker_config_dict.items():
|
||||
if worker_name in GLOBAL_CONTEXT.worker_dict:
|
||||
raise RuntimeError(f"worker_name={worker_name} is repeated!")
|
||||
|
||||
GLOBAL_CONTEXT.worker_dict[worker_name] = init_instance_by_config_v2(worker_config,
|
||||
suffix_name="worker",
|
||||
**GLOBAL_CONTEXT.global_configs)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue