-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
69 lines (63 loc) · 1.7 KB
/
config.example.yaml
File metadata and controls
69 lines (63 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# GoQueue Configuration File
# Copy this file to config.yaml and modify as needed
# Server configuration
server:
# Address to listen on
address: ":8080"
# Read timeout for HTTP requests
read_timeout: 30s
# Write timeout for HTTP responses
write_timeout: 30s
# Shutdown timeout for graceful shutdown
shutdown_timeout: 30s
# Enable WebSocket support for real-time updates
enable_websocket: true
# Queue configuration
queue:
# Default queue name for jobs without explicit queue
default_queue: "default"
# Default maximum retry attempts
max_retries: 3
# Default delay between retries (exponential backoff is applied)
retry_delay: 5s
# Default job timeout
job_timeout: 5m
# Interval for scheduler to check scheduled jobs
scheduler_interval: 1s
# Worker configuration
worker:
# Number of concurrent workers
concurrency: 4
# List of queues to process (in priority order)
queues:
- "critical"
- "default"
- "low"
# Interval for polling new jobs
poll_interval: 1s
# Maximum time to wait for workers to finish during shutdown
shutdown_wait: 30s
# Storage configuration
storage:
# Storage type: "boltdb" or "memory"
type: "boltdb"
# Path to the database file (for boltdb)
path: "goqueue.db"
# Timeout for storage operations
timeout: 5s
# Logging configuration
logging:
# Log level: "debug", "info", "warn", "error"
level: "info"
# Log format: "json" or "console"
format: "json"
# Output: "stdout", "stderr", or file path
output: "stdout"
# Time format for log entries
time_format: "2006-01-02T15:04:05Z07:00"
# Metrics configuration
metrics:
# Enable Prometheus metrics endpoint
enabled: true
# Path for metrics endpoint
path: "/metrics"