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)- 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.