package hostops import "context" const RegistrationWakeRetryReset = "reset-wake-retry" func (h *StartHandle) FinishWakeRetryReset(ctx context.Context) error { _, err := h.w.retryAdmission(ctx, h.account, h.app, h.appID, AdmissionObserved{}, func(a *AppAdmission) error { r, ok := a.Registrations[h.id] if !ok { return nil } if r.Kind != RegistrationWakeRetryReset || r.Owner != h.owner || r.AppID != h.appID || r.Epoch != h.epoch || a.Epoch != h.epoch || !effectsSettled(a, h.id) { return ErrPending } r.Expires = h.w.now().UTC().Add(-RegistrationSkew) a.Registrations[h.id] = r return nil }) return err }