mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 08:52:10 +01:00
- Updated session processing commands in documentation for clarity. - Removed transcript content fetching from session processing, allowing on-demand retrieval. - Improved session metrics calculations and added new metrics for dashboard. - Refactored processing scheduler to handle sessions in parallel with concurrency limits. - Added manual trigger API for processing unprocessed sessions with admin checks. - Implemented scripts for fetching and parsing transcripts, checking transcript content, and testing processing status. - Updated Prisma schema to enforce default values for processed sessions. - Added error handling and logging improvements throughout the processing workflow.
21 lines
616 B
JavaScript
21 lines
616 B
JavaScript
// Direct trigger for processing scheduler (bypasses authentication)
|
|
// Usage: node scripts/trigger-processing-direct.js
|
|
|
|
import { processUnprocessedSessions } from '../lib/processingScheduler.js';
|
|
|
|
async function triggerProcessing() {
|
|
try {
|
|
console.log('🚀 Manually triggering processing scheduler...\n');
|
|
|
|
// Process with custom parameters
|
|
await processUnprocessedSessions(50, 3); // Process 50 sessions with 3 concurrent workers
|
|
|
|
console.log('\n✅ Processing trigger completed!');
|
|
|
|
} catch (error) {
|
|
console.error('❌ Error triggering processing:', error);
|
|
}
|
|
}
|
|
|
|
triggerProcessing();
|