mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-03 18:11:36 -05:00
A server Auto Nest result could only be reviewed in the session that sent it, and nothing stopped two desktops from keeping the same result. Phase 3 adds My Server Jobs, so results that finished while OpenNest was closed are easy to find, and records each review on the server. - Server: GET /api/nest-jobs lists jobs newest first with state, engine, submitter, times, queue position, review and the worker's summary (parts, sheets, utilization, unplaced). It filters to active, finished or unreviewed jobs and to a submitter (a bare user name matches that user on any workstation). An ETag turns unchanged polls into 304s. Schema v17 adds nestId, review and summary columns, only where missing. - Keep once: POST .../keep and .../discard take If-Match on the job revision and change an unreviewed result only once. A second desktop gets 409 with who kept it. DELETE removes finished jobs. A succeeded job keeps its package until it is reviewed, so a later session can rebuild the job. - Retention: OPENNEST_JOB_RETENTION_DAYS (default 7) deletes finished jobs with their results. It runs on claims and list reads. A malformed value fails startup instead of deleting results early. - Worker: reports the result's summary with the transcript. A job cancelled while its result arrived keeps no summary (found in the Docker smoke run). - Desktop: Nest > My Server Jobs polls the list every 3 s; polling rather than per-job SSE because the list must show other desktops' jobs and removals. Open rebuilds the job from job.json against the open nest's own drawings. New per-drawing geometry fingerprints make the freshness check work across sessions. Cancel Job and Remove act on the selected job. A status-bar item counts this user's results waiting for review; there is no popup. Auto Nest's review now records Keep on the server before it commits, and records Discard too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
1.2 KiB
Bash
27 lines
1.2 KiB
Bash
# Copy to a local, untracked env file next to compose.server.yaml and edit it.
|
|
# Never put credentials in this file or the Compose file.
|
|
|
|
# A tested image version or digest, for example ghcr.io/ajisaacs/opennest-server@sha256:<digest>.
|
|
OPENNEST_SERVER_IMAGE=ghcr.io/ajisaacs/opennest-server:REPLACE-WITH-TESTED-VERSION
|
|
|
|
# Loopback for a local test. For shop PCs, use this host's trusted LAN address and
|
|
# confirm the firewall admits only trusted clients; the service has no authentication.
|
|
OPENNEST_BIND_ADDRESS=127.0.0.1
|
|
OPENNEST_HOST_PORT=8090
|
|
|
|
# Docker volume holding nests.db; change only to switch to a verified restore.
|
|
OPENNEST_DATA_VOLUME=opennest-data
|
|
|
|
# Desktop update mirror: the server checks GitHub Releases (outbound HTTPS to api.github.com
|
|
# and github.com) and serves updates to Database-mode workstations. "off" turns it off.
|
|
OPENNEST_UPDATES=on
|
|
|
|
# Server nesting worker limits: CPUs (fractions allowed) and memory it may use. A smaller
|
|
# limit makes jobs slower, never worse; leave room for the server and the rest of the host.
|
|
OPENNEST_WORKER_CPUS=2
|
|
OPENNEST_WORKER_MEMORY=4g
|
|
|
|
# Server nesting: days a finished job (its result, package and summary) is kept before it is
|
|
# deleted, reviewed or not. Fractions allowed.
|
|
OPENNEST_JOB_RETENTION_DAYS=7
|