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.
- reuse : JobAction
Tried to reuse a cached build (e.g., can be set by
replayCachedIfUpToDate). - replay : JobAction
Tried to replay a completed build action (e.g., can be set by
replayIfUpToDate). - unpack : JobAction
Tried to unpack a build from an archive (e.g., unpacking a module
ltar). - fetch : JobAction
Tried to fetch a build from a remote store (e.g., set when downloading an artifact on-demand from a cache service in
buildArtifactUnlessUpToDate). - build : JobAction
Tried to perform a build action (e.g., set by
buildAction).
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.
- wantsRebuild : Bool
Whether this job failed due to a request to rebuild for
--no-build. - trace : BuildTrace
Current trace of a build job.
- buildTime : Nat
How long the job spent building (in milliseconds).
Instances For
JobTask #
The result of a Lake job.
Instances For
Job #
A Lake job.
- task : JobTask α
The Lean
Taskobject 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
Instances For
Instances For
Instances For
Instances For
For internal use.
Instances For
Waits for the job and returns it trace. Useful if the job is already known to be completed.
Instances For
Instances For
Instances For
Instances For
OpaqueJob #
A Lake job task with an opaque value in Type.
Instances For
Forget the value of a job task. Implemented as a no-op cast.
Instances For
A Lake job with an opaque value in Type.
Instances For
Forget the value of a job. Implemented as a no-op cast on the task.