Skip to content

Manage the risk worker pool from Jobs & Infrastructure - #320

Merged
zerodrift merged 3 commits into
masterfrom
codex/managed-risk-worker-pool-20261118
Nov 19, 2026
Merged

zerodrift merged 3 commits into
masterfrom
codex/managed-risk-worker-pool-20261118

Conversation

@zerodrift

Copy link
Copy Markdown
Owner

Worker pool

Jobs & Infrastructure can request one or two replicas of an installation-registered risk worker service, drain the pool to zero, show worker heartbeats and read recent worker app logs or Swarm node events. Installations assign the new scale and diagnostics permissions to their own roles. Scaling also requires current installation operator registration.

Each replica claims a complete job through the existing PostgreSQL queue. The controller checks the approved service specification and uses Docker's service version to reconcile a lost update response. A digest-pinned service template sets one replica per eligible node, one CPU and 2 GiB per worker.

Verification

  • Two local .NET worker processes held distinct job leases concurrently. Three historical settlement quote scenarios on a fixed portfolio of 24 positions across five instruments matched direct repricing, including native futures and swap measures.
  • The disposable PostgreSQL and Chrome suite exercises pool controls, diagnostics, idempotent retries, drain behavior and late cancellation. Migration checks reject changes to the existing admission, heartbeat and inventory functions or their permissions.
  • The frontend and Python test suites passed.

Deployment gate

The qualification uses a simulated manager transport and task inventory. A two-node Swarm exercise is still required to verify actual placement, networking, resource enforcement, restart and retirement. The work distributes independent jobs. Partitioning a single VaR calculation across replicas remains separate work.

Signed-off-by: zerodrift <zerodrift@users.noreply.github.com>
Signed-off-by: zerodrift <zerodrift@users.noreply.github.com>
Signed-off-by: zerodrift <zerodrift@users.noreply.github.com>
@zerodrift
zerodrift marked this pull request as ready for review November 19, 2026 02:56
@zerodrift
zerodrift merged commit 7f202f1 into master Nov 19, 2026
24 checks passed
@zerodrift
zerodrift deleted the codex/managed-risk-worker-pool-20261118 branch November 19, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant