Job Primitives #
This module contains the basic definitions of a Lake Job
. In particular,
it defines OpaqueJob
, which is needed for BuildContext
. More complex
utilities are defined in Lake.Build.Job.Monad
, which depends on BuildContext
.
JobAction #
Information on what this job did.
- unknown : JobAction
No information about this job's action is available.
- replay : JobAction
Tried to replay a cached build action (set by
buildFileUnlessUpToDate
) - fetch : JobAction
Tried to fetch a build from a store (can be set by
buildUnlessUpToDate?
) - build : JobAction
Tried to perform a build action (set by
buildUnlessUpToDate?
)
Instances For
JobState #
Mutable state of a Lake job.
- log : Log
The job's log.
- action : JobAction
Tracks whether this job performed any significant build action.
- trace : BuildTrace
Current trace of a build job.
Instances For
Equations
Instances For
JobTask #
The result of a Lake job.
Equations
Instances For
Job #
A Lake job.
- task : JobTask α
The Lean
Task
object for the job. - kind : OptDataKind α
The kind of data this job produces.
- caption : String
A caption for the job in Lake's build monitor. Will be formatted like
✔ [3/5] Ran <caption>
. - optional : Bool
Whether this job failing should cause the build to fail.
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
For internal use.
Equations
Instances For
Waits for the job and returns it trace. Useful if the job is already known to be completed.
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
OpaqueJob #
A Lake job task with an opaque value in Type
.
Equations
Instances For
Forget the value of a job task. Implemented as a no-op cast.
Equations
Instances For
Equations
A Lake job with an opaque value in Type
.
Equations
Instances For
Forget the value of a job. Implemented as a no-op cast on the task.