ores.compute.wrapper

Table of Contents

Diagram

ores.compute.wrapper component diagram

Figure 1: ores.compute.wrapper

Summary

ores.compute.wrapper is the worker-node process for ORE risk runs. It registers itself with ores.compute.core, waits for job assignments via NATS, executes an ORE risk run for each assigned batch, and reports the result back to the orchestrator. Multiple wrapper instances can run on different machines to scale risk computation horizontally.

Inputs

  • NATS job-assignment message from ores.compute.core containing the ORE input file set and run parameters.
  • Configuration: NATS URL, ORE executable path, working directory.

Outputs

  • ORE risk-run output files (NPV cube, cashflows, etc.) written to a shared output location.
  • NATS job-completion message (result path, status) sent back to ores.compute.core.

Entry points

  • src/main.cpp — process entry point; registers with orchestrator and starts the job-receive loop.
  • src/app/ — bootstrap and job execution logic.
  • src/config/ — configuration parsing.

Dependencies

  • ores.compute.api — shared protocol types (job assignment, result messages).
  • ores.logging — structured logging.
  • nats.c — NATS client.

See also

Emacs 29.1 (Org mode 9.6.6)