mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-03 12:22:37 +02:00
Fix erroneous handling of __template__ and __system__ workspaces (#860)
__template__ and __system__ are not real workspace but config zones for workspace template and init handling. They should not be processed as workspaces. Now ignores workspace beginning with '_' prefix.
This commit is contained in:
parent
69b0b9b326
commit
89f058d35b
1 changed files with 4 additions and 0 deletions
|
|
@ -209,6 +209,8 @@ class AsyncProcessor:
|
||||||
|
|
||||||
# Call the handler once per workspace
|
# Call the handler once per workspace
|
||||||
for ws, config in per_ws.items():
|
for ws, config in per_ws.items():
|
||||||
|
if ws.startswith("_"):
|
||||||
|
continue
|
||||||
await entry["handler"](ws, config, version)
|
await entry["handler"](ws, config, version)
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|
@ -310,6 +312,8 @@ class AsyncProcessor:
|
||||||
per_ws.setdefault(ws, {})[t] = kv
|
per_ws.setdefault(ws, {})[t] = kv
|
||||||
|
|
||||||
for ws, config in per_ws.items():
|
for ws, config in per_ws.items():
|
||||||
|
if ws.startswith("_"):
|
||||||
|
continue
|
||||||
await entry["handler"](
|
await entry["handler"](
|
||||||
ws, config, notify_version,
|
ws, config, notify_version,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue