// Package queue provides task queue functionality
package queue

// Redis key prefixes - schema ownership belongs with the queue package
const (
	TaskQueueKey        = "ml:queue"
	TaskPrefix          = "ml:task:"
	JobMetricsPrefix    = "ml:metrics:"
	TaskStatusPrefix    = "ml:status:"
	DatasetPrefix       = "ml:dataset:"
	WorkerHeartbeat     = "ml:workers:heartbeat"
	WorkerPrewarmKey    = "ml:workers:prewarm:"
	PrewarmGCRequestKey = "ml:prewarm:gc:request"
)

// Task status constants
const (
	TaskStatusQueued    = "queued"
	TaskStatusRunning   = "running"
	TaskStatusCompleted = "completed"
	TaskStatusFailed    = "failed"
	TaskStatusCancelled = "cancelled"
)
