MCPcopy Create free account
hub / github.com/coder/coder / CalculateActions

Method CalculateActions

enterprise/coderd/prebuilds/reconcile.go:691–697  ·  view source on GitHub ↗
(ctx context.Context, snapshot prebuilds.PresetSnapshot)

Source from the content-addressed store, hash-verified

689}
690
691func (c *StoreReconciler) CalculateActions(ctx context.Context, snapshot prebuilds.PresetSnapshot) ([]*prebuilds.ReconciliationActions, error) {
692 if ctx.Err() != nil {
693 return nil, ctx.Err()
694 }
695
696 return snapshot.CalculateActions(c.cfg.ReconciliationBackoffInterval.Value())
697}
698
699func (c *StoreReconciler) WithReconciliationLock(
700 ctx context.Context,

Callers 6

TestPrebuildsAutobuildFunction · 0.95
ReconcilePresetMethod · 0.95
TestFailedBuildBackoffFunction · 0.95
TestClaimPrebuildFunction · 0.95

Calls 2

ErrMethod · 0.80
ValueMethod · 0.45

Tested by 4

TestPrebuildsAutobuildFunction · 0.76
TestFailedBuildBackoffFunction · 0.76
TestClaimPrebuildFunction · 0.76