R2 hub-start-alone: the runner reads its seat list once the hub hears every pattern, with Start alone
Builds: design 47 H2b §836 1., acceptance 1984/AC-836j, from mesh-sdk S1 9d0478d1
This commit is contained in:
@@ -472,12 +472,12 @@ func run(ctx context.Context, getenv func(string) string, logOut io.Writer) erro
|
||||
seats.Follow(seatlist.ProcessBus(calls.Call, hub), nil, logger.Printf)
|
||||
again := bindTakeIns(ctx, js, cred, takeIns.handle, takeInsBound, logger.Printf)
|
||||
bindTakeInsAgain.Store(&again)
|
||||
if err := hub.StartUntilBound(ctx, js, cred, nil, seats.EventsLive); err != nil {
|
||||
// The seat list is read again once the hub hears every pattern, the kept seat events' streams (the steps' ends, G-1 §24)
|
||||
// included (design 47 H2b §836 1., 2.): no timer retries it.
|
||||
hub.OnAllHeard(seats.EventsLive)
|
||||
if err := hub.Start(ctx, js, cred); err != nil {
|
||||
logger.Printf("the consumer %s is not bound yet (%v): bound once the bus makes it", cred.EventConsumerName(), err)
|
||||
}
|
||||
// The steps' ends are kept seat events, each on its own stream (step-ended of the build seats, mesh-builds and
|
||||
// mesh-wants), never on EVENTS: bound here, or no step of any pipeline is ever heard ending (G-1 §24).
|
||||
logger.Printf("the kept seat events heard: %d streams bound", hub.StartKept(ctx, js, cred))
|
||||
stopVerbs, err := answerVerbs(calls, seats, verbs)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user