Zum Hauptinhalt springen

Workers

Admin → Platform Settings → Workers (/admin/platform-settings/workers) lists every background worker OpSee runs — the ones that ingest data and the ones that keep the database tidy — with its health, throughput and last error, and lets you enable, disable, retune or debug each one.

Requires the perm:system:admin permission. There is no admin bypass.

What a worker is​

A worker is a loop that wakes on its poll interval, does one cycle of work, and records what happened. Workers are grouped by type, shown as a chip on each row:

TypeExamples of what it does
ingestionCollects from OPC-UA, MQTT and Modbus; materialises OEE availability, production and quality
maintenanceApplies the RETENTION_* windows, dropping old data
calculationEvaluates configured calculations and writes their output tags
alarmsEvaluates alarm definitions and delivers notifications
backupRuns the offsite backup and, when explicitly enabled, a restore
analysisDrains queued trend-analysis jobs

The registry is read from the database, so the list shows every registered worker regardless of which process actually hosts it — several run in a separate ingestion sidecar rather than in the API container.

Reading the screen​

Three cards summarise the fleet: total Workers, how many are Running, and how many Need attention (degraded or unhealthy). The table refreshes every 10 seconds while Auto-refresh is on; the toggle in the header turns it off, and refreshing pauses automatically while you are editing a row.

ColumnMeaning
WorkerIts name and description
TypeGroup, as above
HealthSee the table below
Enabled / DebugToggles — see Controlling a worker
IntervalSeconds between cycles
Last runWhen the last cycle finished and how long it took; a spinner and Running while a cycle is in flight
ThroughputItems processed and errors in total, plus consecutive errors when there are any
Last errorThe most recent error message

Health​

Health is derived from the worker's own recorded state, in this order:

HealthWhat it meansWhat to do
DisabledSwitched off here. Nothing runs.Nothing, if that is intended
StoppedEnabled, but not currently runningCheck that the process or container hosting it is up
Unhealthy10 or more consecutive errors, or no cycle for more than three times its poll intervalInvestigate now — this worker is not doing its job
DegradedAt least one consecutive error, but fewer than 10Read the last error; often a transient source or network problem that clears itself
HealthyRunning, no consecutive errors, cycles arriving on timeNothing

A Stopped or long-silent worker is the usual explanation for data that has quietly stopped arriving, so this screen is the first place to look when a trend goes flat.

Investigating a problem​

The View logs action on a row opens System Logs filtered to that worker. For a degraded or unhealthy worker it also pins the level to ERROR, so you land directly on the failures.

If the errors are not self-explanatory, turn on Debug for that worker, wait for a few cycles, read the extra detail in System Logs — then turn it off again. Debug logging is verbose and inflates the log table and disk usage.

Controlling a worker​

Changes are written to the worker registry in the database and picked up by the worker on its next cycle. They do not require a restart, and they persist.

  • Enabled — the toggle stops or starts the worker. Disabling an ingestion worker stops that data source; disabling the retention worker stops old data from being pruned.
  • Debug — verbose logging for this worker only.
  • Edit interval — the poll interval in seconds, between 1 and 3600. Shorter means fresher data and more load; longer means the opposite. Note that health flags a worker unhealthy after three missed intervals, so a very short interval on a slow worker will read as unhealthy.

Each change is confirmed by a snackbar, and a failed change is rolled back on screen from the server's actual state.

warnung

Disabling a worker is silent. Nothing else in the product warns that ingestion, retention or alarm evaluation has been switched off here — the only sign is a Disabled row on this screen and data that stops appearing.

Some of the same settings are also exposed as named entries on System Parameters; this screen is the direct, per-worker view.