MCPcopy Create free account
hub / github.com/code-pushup/cli / isCoordinator

Method isCoordinator

packages/utils/src/lib/wal-sharded.ts:230–232  ·  view source on GitHub ↗

* Is this instance the coordinator? * * Coordinator status is determined from the coordinatorIdEnvVar environment variable. * The coordinator handles finalization and cleanup of shard files. * Checks dynamically to allow coordinator to be set after construction. * * @returns true i

()

Source from the content-addressed store, hash-verified

228 * @returns true if this instance is the coordinator, false otherwise
229 */
230 isCoordinator(): boolean {
231 return ShardedWal.isCoordinatorProcess(this.#coordinatorIdEnvVar, this.#id);
232 }
233
234 /**
235 * Asserts that the WAL is in 'active' state.

Callers 4

cleanupMethod · 0.95
statsMethod · 0.95
finalizeIfCoordinatorMethod · 0.95
cleanupIfCoordinatorMethod · 0.95

Calls 1

isCoordinatorProcessMethod · 0.80

Tested by

no test coverage detected