Adom Step2GLB - The Adom STEP Engine
Public Made by Adomby adom
The Adom STEP engine: fully manage STEP files. Convert to color-preserving GLB, render thumbnails and vector outlines, laser-etch MPNs, create and edit STEP geometry, extract features, and run molecule mode. One name for the thin Rust CLI and the shared OCCT service. Formerly 'step2glb' + 'service-step2glb'.
thumbnail-batch async job fails: name 'job_type' is not defined (and CLI does not poll 202)
/thumbnail-batch fails for any input large enough to be queued as an async job. The job is accepted, then dies server-side with a Python NameError:
{
"job_id": "31878e4121c59b78",
"job_name": "thumbnail-batch",
"job_type": "thumbnail-batch",
"status": "failed",
"size_mb": 1.6,
"error": "name 'job_type' is not defined"
}
Repro: step2glb thumbnail-batch <a ~1.6 MB .step> --orientations asIs,zDown,yUp --sizes lg -o thumbs
Service v1.2.0 (git_sha 9f579569). The synchronous path is fine — only the queued/async branch is affected, so it looks like a bare job_type reference where the surrounding code uses a different name (e.g. job.job_type / jobtype).
Second, smaller bug in the CLI: thumbnail-batch does not poll async jobs the way convert does. It receives the 202 {"status":"queued","poll":"/jobs/<id>"} and immediately errors out with ERROR: batch thumbnail render failed: service returned HTTP 202, leaving an empty output dir. Even once the server side is fixed, the CLI will need the same polling loop convert already has.
Workaround in the meantime is rendering the GLB locally with three.js + puppeteer.
