IMPLEMENTATION DOCS / UNS FRAMEWORK

uns-productivity — Production Run Logger

Tracks production runs and logs throughput metrics to PostgreSQL.

Production · Tracks runs and completed parts. Pair these records with operator input where context is missing from machine signals.
LanguageGo
TypeHTTP function (polled)
Scaffolded withfnkit go
Depends onValkey, PostgreSQL
On this page 3 sections
What It DoesTriggersQuick Start

What It Does

Reads /program topics, tracks active runs per machine. On run completion or change, logs to PostgreSQL with throughput metrics.

Triggers

TriggerDescription
completedParts reached target
program_changedSwitched program
stoppedRUNNING -> STOPPED

Quick Start

cd uns-productivity && cp .env.example .env && docker compose up -d
while true; do curl -s http://localhost:8080/uns-productivity | jq; sleep 10; done