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

Function getShardId

packages/utils/src/lib/wal-sharded.ts:80–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 * @returns A unique ID string with readable timestamp, process ID, thread ID, and counter
79 */
80export function getShardId(): string {
81 return `${getUniqueTimeId()}.${process.pid}.${threadId}.${ShardedWalCounter.next()}`;
82}
83
84/**
85 * @TODO remove in PR https://github.com/code-pushup/cli/pull/1231 in favour of class method getShardedFileName

Callers 1

shardMethod · 0.85

Calls 2

getUniqueTimeIdFunction · 0.85
nextMethod · 0.80

Tested by

no test coverage detected