Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
627 changes: 627 additions & 0 deletions CONTRIBUTOR_SETUP.md

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions listener/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ SCHEDULER_PROCESSOR_ID=
SCHEDULER_BATCH_SIZE=10
SCHEDULER_TIMING_BUFFER_MS=60000

# Event Processing Queue Configuration
# EVENT_QUEUE_MAX_CONCURRENCY=1 # Max events to process concurrently
# EVENT_QUEUE_MAX_RETRIES=3 # Max retries per event before permanent failure
# EVENT_QUEUE_BASE_DELAY_MS=2000 # Base delay for exponential backoff (ms)
# EVENT_QUEUE_POLL_INTERVAL_MS=1000 # How often to check for due events (ms)

# Rate Limiting Configuration
RATE_LIMIT_ENABLED=true
RATE_LIMIT_WINDOW_MS=60000
Expand Down
10 changes: 10 additions & 0 deletions listener/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion listener/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Config, ContractConfig, DiscordConfig, WebhookSecret, AppCleanupConfig } from './types';
import { Config, ContractConfig, DiscordConfig, WebhookSecret, AppCleanupConfig, EventQueueConfig } from './types';

export class ConfigError extends Error {
constructor(message: string) {
Expand Down Expand Up @@ -146,6 +146,12 @@ export function loadConfig(): Config {
baseDelayMs: parseIntegerEnv('RETRY_BASE_DELAY_MS', '5000'),
maxRetries: parseIntegerEnv('RETRY_MAX_RETRIES', '5'),
},
eventQueue: {
maxConcurrency: parseIntegerEnv('EVENT_QUEUE_MAX_CONCURRENCY', '1'),
maxRetries: parseIntegerEnv('EVENT_QUEUE_MAX_RETRIES', '3'),
baseDelayMs: parseIntegerEnv('EVENT_QUEUE_BASE_DELAY_MS', '2000'),
pollIntervalMs: parseIntegerEnv('EVENT_QUEUE_POLL_INTERVAL_MS', '1000'),
},
webhookSecrets: validateWebhookSecrets(rawWebhookSecrets),
scheduler: {
enabled: trimEnv('SCHEDULER_ENABLED') !== 'false',
Expand Down
Loading
Loading