oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package runner
2
3import (
4 "amadan.net/oficina/equipo/internal/equipo/team"
5 "amadan.net/oficina/equipo/internal/runnerproto"
6 "context"
7)
8
9func (s *Supervisor) admitDirect(ctx context.Context, r *attemptState, q runnerproto.RunnerRequest, ticket *team.AdmissionTicket) error {
10 r.InFlightAction = q.ActionID
11 r.Phase = "admitting"
12 if err := s.save(ctx, r); err != nil {
13 return err
14 }
15 if err := retryAuthority(ctx, func() error { return s.api.Call(ctx, "admit", q, ticket) }); err != nil {
16 return err
17 }
18 r.Phase = "turn"
19 return s.save(ctx, r)
20}
21