runner-dispatch

runner-dispatch

One-job CI runners for trusted jobs: a source of queued jobs, trust rules as data, and a provider that makes one machine for one job.

Which runs get a machine

The dispatcher makes a machine only for a trusted run. Pick a sample run, or change a field or a rule. At each change, the page calls decide of the package.

The run

      The life of one machine

      Each machine does one job, and then the dispatcher destroys it. Each state has a timer, so no machine stays forever. Send events, and see the state, the timer and the requests of the dispatcher. The page uses MACHINE_LIFECYCLE, advance and waitOf of the package.

        The log

          The times of a machine

          Each time is in seconds. A change starts the life again.

            How long the jobs wait

            The dispatcher sees a job start only when it reads the queue. Thus each time of a job has two bounds. summarizeMeasures gives the bounds of each quantile of many jobs, and each pair of bounds holds the true quantile.

            A sample, not real data. This page makes the jobs and their true times from a model. Only the demo knows the true times. The dispatcher knows only the bounds.

            The bounds from the reads The true times The true quantile

            Each curve gives the share of the jobs at or below each time. Point at the chart to read the bounds of each level.

            Low and high are the bounds of each quantile from the reads. True is the quantile of the true times, which only the sample knows.
            LevelLowHighTrueHeld
            The summary measure-summary/1

            The command runner-dispatch-measures writes this record from the logs of the dispatcher. Each time is in milliseconds.

            
                

            Install

            pnpm add @mark1russell7/runner-dispatch

            The package is on npm. Releases shows each version, and Status shows the open work.