Skip to content

Worker — CLI Command

Usage

momentry worker [OPTIONS]

Description

Start the job worker to process queued jobs in the background.

Arguments

None.

Options

Option Type Required Default Description
--max-concurrent usize No 2 Max concurrent processors
--poll-interval u64 No 5 Poll interval in seconds
--batch-size i32 No 10 Job batch size

Examples

# Start worker with defaults
momentry worker

# Start with 6 concurrent processors
momentry worker --max-concurrent 6

# Start with custom polling
momentry worker --max-concurrent 4 --poll-interval 10 --batch-size 5

Agent Callable

Format: Not directly callable via agent JSON args.

Note: Worker runs as a long-running background service.

  • server — API server
  • process — Manual processing
  • watch — Directory watcher