kicad2ems.gui.runqueue

The study's runs in progress with no window: the queue of a Run (the Steps of
kicad2ems's plan, StudyModel.steps), the one going, what failed, and each
run's state as the list and the Run page say it.

    RunQueue          one Run's queue: start(steps) fills it, next() gives
                      the run to start (one whose `needs` did not finish is
                      passed over, said), began / not_started / ended say what
                      became of it, stop() empties it

Starting a run is the caller's (the window's launcher, RunProcess, or a
program's own): this says which, and keeps the states. Every state change
calls `on_state(key, text, bad, seconds)`. Nothing here needs Qt.
class kicad2ems.gui.runqueue.RunQueue(on_state=None, title=<class 'str'>)[source]
One Run's runs, one after the other:

queue     the runs still to start, in order ('rf', or an analysis's)
job       the run going (None: none)
steps     {run: its Step of the plan}
preview   a preview's queue
stopped   Stop was pressed: what ends now ended stopped, not failed
failed    the runs that did not finish (a later run that needs one is
          not started)
began(key)[source]
The run `key` (as next() gave it) started.
ended(key, code)[source]
The run going ended with `code` (0: it finished). Returns its
seconds, or None when `key` is not the run going.
next()[source]
The next run to start, now `job` (began: it started; not_started:
it could not), or None: none left, or one is going. A run whose
analysis needs one that did not finish is not run, and said so.
not_started(key, why)[source]
The run `key` could not start: why (a setting missing, a fault).
start(steps, preview=False, key_of=None)[source]
A new Run's queue: steps of the plan (core.study.plan, as
StudyModel.steps gives them), each a run by key_of(step) (study.key_of
by default). Returns the runs, in order, each said 'queued'.
stop()[source]
Stop pressed: what is queued is not run; the run going, if any,
ends stopped. Returns whether one is going.