Documentation
¶
Overview ¶
Package migrate adapts the instance migrate algorithm to the jobs runner.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
Reconciler adapts instance.Service.ReconcileMigrate to the jobs runner's Reconciler contract, recovering migrate jobs interrupted by a daemon restart.
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, job store.Job, jc *jobs.JobContext) (store.JobState, string, bool, error)
Reconcile decodes the job args and drives the interrupted migrate to a consistent state. Unparseable args are a permanent failure (the job cannot be acted on); an inconclusive host check leaves the job reconciling for retry.
Click to show internal directories.
Click to hide internal directories.