# Orchestrator Queue Configuration Fragment

[[elements]]
border_bottom = false
border_top = true
name = "queue_section_header"
title = "📦 Queue Configuration"
type = "section_header"

[[elements]]
default = 5
help = "Maximum number of concurrent tasks running simultaneously (range: ${constraint.orchestrator.queue.concurrent_tasks.min}-${constraint.orchestrator.queue.concurrent_tasks.max})"
max = "${constraint.orchestrator.queue.concurrent_tasks.max}"
min = "${constraint.orchestrator.queue.concurrent_tasks.min}"
name = "queue_max_concurrent_tasks"
nickel_path = ["queue", "max_concurrent_tasks"]
prompt = "Max Concurrent Tasks"
type = "number"

[[elements]]
default = 3
help = "Number of retry attempts for failed tasks (range: ${constraint.orchestrator.queue.retry_attempts.min}-${constraint.orchestrator.queue.retry_attempts.max})"
max = "${constraint.orchestrator.queue.retry_attempts.max}"
min = "${constraint.orchestrator.queue.retry_attempts.min}"
name = "queue_retry_attempts"
nickel_path = ["queue", "retry_attempts"]
prompt = "Retry Attempts"
type = "number"

[[elements]]
default = 5000
help = "Delay in milliseconds between retry attempts (range: ${constraint.orchestrator.queue.retry_delay.min}-${constraint.orchestrator.queue.retry_delay.max})"
max = "${constraint.orchestrator.queue.retry_delay.max}"
min = "${constraint.orchestrator.queue.retry_delay.min}"
name = "queue_retry_delay"
nickel_path = ["queue", "retry_delay"]
prompt = "Retry Delay (ms)"
type = "number"

[[elements]]
default = 3600000
help = "Task timeout in milliseconds (range: ${constraint.orchestrator.queue.task_timeout.min}-${constraint.orchestrator.queue.task_timeout.max})"
max = "${constraint.orchestrator.queue.task_timeout.max}"
min = "${constraint.orchestrator.queue.task_timeout.min}"
name = "queue_task_timeout"
nickel_path = ["queue", "task_timeout"]
prompt = "Task Timeout (ms)"
type = "number"

[[elements]]
default = true
help = "Enable persistent queue storage"
name = "queue_persist"
nickel_path = ["queue", "persist"]
prompt = "Persistent Queue"
type = "confirm"

[[elements]]
default = false
help = "Enable priority queue support for task ordering"
name = "queue_priority_queue"
nickel_path = ["queue", "priority_queue"]
prompt = "Priority Queue"
type = "confirm"

[[elements]]
default = false
help = "Enable queue metrics collection"
name = "queue_metrics"
nickel_path = ["queue", "metrics"]
prompt = "Queue Metrics"
type = "confirm"
