MCPcopy Create free account
hub / github.com/Effect-TS/effect / entityAddress

Function entityAddress

packages/effect/src/cluster/ClusterWorkflowEngine.ts:173–180  ·  view source on GitHub ↗
(entityType: string, executionId: string, shardGroup: string)

Source from the content-addressed store, hash-verified

171 const shardGroupFor = (workflow: Workflow.Any, executionId: string) =>
172 Context.get(workflow.annotations, ClusterSchema.ShardGroup)(executionId as EntityId.EntityId)
173 const entityAddress = (entityType: string, executionId: string, shardGroup: string) => {
174 const entityId = EntityId.make(executionId)
175 return EntityAddress.make({
176 entityType: EntityType.make(entityType),
177 entityId,
178 shardId: sharding.getShardId(entityId, shardGroup)
179 })
180 }
181 const entityAddressFor = (options: {
182 readonly workflow: Workflow.Any
183 readonly entityType: string

Callers 3

entityAddressForFunction · 0.85
childResultReadyFunction · 0.85

Calls 2

getShardIdMethod · 0.80
makeMethod · 0.65

Tested by

no test coverage detected