(state: FailoverStorageState)
| 1599 | ]).annotateRpcs(ClusterSchema.InterruptOnTermination, true) |
| 1600 | |
| 1601 | const makeTerminationSharding = (state: FailoverStorageState) => |
| 1602 | Sharding.layer.pipe( |
| 1603 | Layer.provide(Layer.effect( |
| 1604 | RunnerStorage.RunnerStorage, |
| 1605 | Effect.map(Effect.clock, (clock) => makeFailoverStorage(state, clock)) |
| 1606 | )), |
| 1607 | Layer.provide([RunnerHealth.layerNoop, Runners.layerNoop]), |
| 1608 | Layer.provide([MessageStorage.layerMemory, Snowflake.layerGenerator]), |
| 1609 | Layer.provide(ShardingConfig.layer({ |
| 1610 | runnerAddress: Option.some(RunnerAddress.make("localhost", 1234)), |
| 1611 | shardsPerGroup: 1, |
| 1612 | shardLockExpiration: 3000, |
| 1613 | shardLockRefreshInterval: 100, |
| 1614 | entityTerminationTimeout: 1000, |
| 1615 | entityMessagePollInterval: 10, |
| 1616 | entityReplyPollInterval: 10, |
| 1617 | refreshAssignmentsInterval: 10, |
| 1618 | sendRetryInterval: 10 |
| 1619 | })) |
| 1620 | ) |
| 1621 | |
| 1622 | interface FailoverStorageState { |
| 1623 | blackholed: boolean |
no test coverage detected