Skip to main content

Module worker

Module worker 

Source
Expand description

Canonical worker types and identity.

This module defines the single source of truth for worker identity, type enums, and core configuration. These types are shared across API request/response boundaries and internal runtime state.

Structs§

FlushCacheResult
Result from flush cache operations across workers
HealthCheckConfig
Health check configuration shared across protocol and runtime layers.
HealthCheckUpdate
Partial health check config for PATCH-style updates.
JobStatus
Job status for async control plane operations
SchedulerLoadSnapshot
Per-DP-rank load snapshot from a backend.
WorkerApiResponse
Generic API response
WorkerErrorResponse
Error response
WorkerGroupKey
Composite key identifying a group of workers with the same characteristics.
WorkerInfo
Worker information for API responses.
WorkerListResponse
Worker list response
WorkerLoadInfo
Individual worker load information
WorkerLoadResponse
Full load response for a single worker across all DP ranks.
WorkerLoadsResult
Result from getting worker loads
WorkerSpec
Core worker identity and configuration.
WorkerStats
Worker statistics
WorkerTypeStats
Worker statistics by type
WorkerUpdateRequest
Worker update request

Enums§

ConnectionMode
Connection mode for worker communication.
ProviderType
Provider type for external API transformations.
RuntimeType
Runtime implementation type for workers.
WorkerModels
Models configuration for a worker.
WorkerType
Worker type classification.

Constants§

DEFAULT_WORKER_COST
DEFAULT_WORKER_PRIORITY