media-worker

command
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Command media-worker is the stock media worker (media/worker) for hosts whose registry is plain data: it reads it from a JSON file (media.Registry's JSON). Hosts with a Private.Choose or Hooks.Failed build their own worker from the code that builds their registry instead.

Environment: worker.FromEnv and Config.TuningFromEnv, plus

MEDIA_KINDS_FILE    the host's registry as JSON (media.Registry's MarshalJSON)
MEDIA_METRICS_ADDR  ops listen address (default :9090): /metrics, /livez, /readyz, /statusz

The process never exits for a missing dependency: it waits for Postgres and the bucket with backoff, reporting both on /statusz and app_dependency_up. It runs no DDL: the host's migration step applies workqueue.Migrate to MEDIA_WORKER_SCHEMA, so DATABASE_URL can be an unprivileged role.

Jump to

Keyboard shortcuts

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