worker-probe

command
v1.22.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command worker-probe is a stub TMI worker. It exists to prove the worker bootstrap + job-envelope + secret-mount contract end to end before #347's real workers depend on it. It is a test fixture, not production code.

NATS approach: this binary uses the plain github.com/nats-io/nats.go client directly rather than internal/worker.Connect or internal/worker.RunConsumer for two reasons:

  1. internal/worker.Connect unconditionally creates a JetStream Object Store bucket (TMI_PAYLOADS), which requires JetStream to be enabled on the server. For a one-shot probe that receives a single message this extra dependency is inappropriate.

  2. internal/worker.RunConsumer is a long-running durable JetStream consumer loop; there is no internal/worker primitive for "receive exactly one message with a timeout." The probe requires exactly that pattern.

The probe does use worker.ResultSubject (an existing helper) to derive the result subject — no new exported helpers were added to internal/worker.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL