feat: Implement configurable scheduler settings and enhance CSV import functionality

This commit is contained in:
Max Kowalski
2025-06-27 16:55:25 +02:00
parent 1dd618b666
commit 50b230aa9b
10 changed files with 457 additions and 48 deletions

22
.env.local.example Normal file
View File

@ -0,0 +1,22 @@
# Copy this file to .env.local and configure as needed
# NextAuth.js configuration
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_secret_key_here
NODE_ENV=development
# OpenAI API key for session processing
OPENAI_API_KEY=your_openai_api_key_here
# Scheduler Configuration
SCHEDULER_ENABLED=true # Set to false to disable all schedulers during development
CSV_IMPORT_INTERVAL=*/15 * * * * # Every 15 minutes (cron format)
SESSION_PROCESSING_INTERVAL=0 * * * * # Every hour (cron format)
SESSION_PROCESSING_BATCH_SIZE=0 # 0 = process all sessions, >0 = limit number
SESSION_PROCESSING_CONCURRENCY=5 # Number of sessions to process in parallel
# Example configurations:
# - For development (no schedulers): SCHEDULER_ENABLED=false
# - For testing (every 5 minutes): CSV_IMPORT_INTERVAL=*/5 * * * *
# - For limited processing: SESSION_PROCESSING_BATCH_SIZE=10
# - For high concurrency: SESSION_PROCESSING_CONCURRENCY=10