peal.web.jobs

Job store and the single-GPU worker of the web demo.

A job is a directory under the jobs root:

<root>/<job_id>/job.json status, form fields, timings <root>/<job_id>/model.onnx the (output-selected) uploaded classifier <root>/<job_id>/dataset/ imgs/{0,1} + data.csv <root>/<job_id>/config.yaml DiDAE config (+ data.yaml, generator.yaml) <root>/<job_id>/feedback/ WebFeedbackTeacher request/response files <root>/<job_id>/log.txt run_didae.py stdout/stderr <root>/<job_id>/run/ DiDAE base_dir <root>/<job_id>/results.json written by peal.web.summarize

One worker thread runs jobs strictly one after another (one GPU, one job), so the wait estimate is queue position x the median duration of recent jobs.

Module attributes

STEP_RE

The adaptor prints a step marker per phase.

STEP_ORDER

Order of the step keys a job passes through, for the progress timeline.

Functions

latest_activity

The last meaningful line of a job log, for the "currently" display.

pending_feedback_round

The oldest request round without a response, or None.

Classes

JobStore

Directory-backed store of web-demo jobs, one job.json per job.

Worker

Runs queued jobs one at a time as python run_didae.py --config ....