UBERF-7670: Per region moves (#7444)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-12-13 00:20:35 +07:00
committed by GitHub
parent 1eefb143cc
commit 7b497c93c1
35 changed files with 1597 additions and 463 deletions
+3 -2
View File
@@ -10,6 +10,7 @@ import core, {
Client,
ClientConnectEvent,
DocumentUpdate,
isActiveMode,
MeasureContext,
RateLimiter,
Ref,
@@ -748,8 +749,8 @@ export class PlatformWorker {
errors++
return
}
if (workspaceInfo?.mode === 'archived') {
this.ctx.warn('Workspace is archived.', { workspace })
if (!isActiveMode(workspaceInfo?.mode)) {
this.ctx.warn('Workspace is in maitenance, skipping for now.', { workspace })
return
}
if (workspaceInfo?.disabled === true) {