MCPcopy Index your code
hub / github.com/Effect-TS/effect / entityAddressFor

Function entityAddressFor

packages/cluster/src/ClusterWorkflowEngine.ts:136–150  ·  view source on GitHub ↗
(options: {
    readonly workflow: Workflow.Any
    readonly entityType: string
    readonly executionId: string
  })

Source from the content-addressed store, hash-verified

134 idleTimeToLive: "5 minutes"
135 })
136 const entityAddressFor = (options: {
137 readonly workflow: Workflow.Any
138 readonly entityType: string
139 readonly executionId: string
140 }) => {
141 const shardGroup = Context.get(options.workflow.annotations, ClusterSchema.ShardGroup)(
142 options.executionId as EntityId
143 )
144 const entityId = EntityId.make(options.executionId)
145 return new EntityAddress({
146 entityType: EntityType.make(options.entityType),
147 entityId,
148 shardId: sharding.getShardId(entityId, shardGroup)
149 })
150 }
151
152 const sendDiscard = Effect.fnUntraced(function*(options: {
153 readonly rpc: Rpc.AnyWithProps

Callers 2

scheduleClockFunction · 0.85

Calls 3

getShardIdMethod · 0.80
getMethod · 0.65
makeMethod · 0.65

Tested by

no test coverage detected