Documentation

Lake.Build.Job.Register

Job Registration #

@[inline]

Resets the job state after a checkpoint (e.g., registering the job). Preserves state that downstream jobs want to depend on while resetting job-local state that should not be inherited by downstream jobs.

Equations
Instances For
    def Lake.Job.renew {α : Type u_1} (self : Job α) :
    Job α

    Resets the job's state after a checkpoint (e.g., registering the job). Preserves information that downstream jobs want to depend on while resetting job-local information that should not be inherited by downstream jobs.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[inline]
      def Lake.registerJob {m : TypeType} {α : Type} [Monad m] [MonadLiftT (ST IO.RealWorld) m] [MonadBuild m] (caption : String) (job : Job α) (optional : Bool := false) :
      m (Job α)

      Registers the job for the top-level build monitor, (e.g., the Lake CLI progress UI), assigning it caption.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Lake.ensureJob {α : Type} (x : FetchM (Job α)) :
        FetchM (Job α)

        Wraps stray I/O, logs, and errors in x into the produced job.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Lake.withRegisterJob {α : Type} (caption : String) (x : FetchM (Job α)) (optional : Bool := false) :
          FetchM (Job α)

          Registers the produced job for the top-level build monitor (e.g., the Lake CLI progress UI), assigning it caption.

          Stray I/O, logs, and errors produced by x will be wrapped into the job.

          Equations
          Instances For
            @[inline]
            def Lake.maybeRegisterJob {α : Type} (caption : String) (job : Job α) :
            FetchM (Job α)

            Registers the produced job for the top-level build monitor if it is not already (i.e., it has an empty caption).

            Equations
            Instances For