(options: {
readonly workflow: Workflow.Any
readonly entityType: string
readonly executionId: string
})
| 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 |
no test coverage detected