Std.App.Work
22 public declarations
- Due
When a job is due again.
- dueAt
&Std.App.Work.Schedule -> Int -> Array[Str]The names of the jobs due at a moment.
- everFailed
&Std.App.Work.Record -> BoolWhether a job has ever failed.
- failuresOf
&Std.App.Work.Record -> IntHow many of those failed.
- isDue
&Std.App.Work.Job -> Int -> BoolWhether one job is due.
- job
Str -> Std.App.Work.Due -> fn() -> Result[(), Str] -> Std.App.Work.JobA job from its parts.
- Job
One thing a service does when nobody asked.
- jobsOf
&Std.App.Work.Schedule -> Array[Std.App.Work.Job]What the schedule holds.
- lastFailureOf
&Std.App.Work.Record -> Option[Str]What it last said when it failed, or nothing when it has not.
- lastTookOf
&Std.App.Work.Record -> IntHow long the last run took.
- names
&Std.App.Work.Schedule -> Array[Str]The names of the jobs, so a program can report what it does unasked.
- nothing
Std.App.Work.ScheduleNothing scheduled.
- nothingYet
Std.App.Work.RecordNothing recorded yet.
- Record
What a job has done so far.
- recordOf
&Std.App.Work.Schedule -> Str -> Option[Std.App.Work.Record]What one job has done.
- render
&Std.App.Work.Schedule -> StrWhat a schedule has been doing, one line per job.
- runDue
&Std.App.Work.Schedule -> Int -> fn() -> Int -> Std.App.Work.ScheduleThe schedule after running everything due at a moment.
- runsOf
&Std.App.Work.Record -> IntHow many times a job ran.
- schedule
&Array[Std.App.Work.Job] -> Std.App.Work.ScheduleA schedule of jobs.
- Schedule
The work a service does on its own.
- Scheduling
What a schedule holds and which of its jobs are in flight.
- skipsOf
&Std.App.Work.Record -> IntHow many turns were skipped because the last run had not finished.
