Broken shit

This commit is contained in:
Max Kowalski
2025-06-26 21:00:19 +02:00
parent ab2c75b736
commit 653d70022b
49 changed files with 2826 additions and 2102 deletions

View File

@ -1,20 +1,21 @@
// Direct trigger for processing scheduler (bypasses authentication)
// Usage: node scripts/trigger-processing-direct.js
import { processUnprocessedSessions } from '../lib/processingScheduler.js';
// Direct processing trigger without authentication
import { processUnprocessedSessions } from '../lib/processingScheduler.ts';
async function triggerProcessing() {
try {
console.log('🚀 Manually triggering processing scheduler...\n');
console.log('🤖 Starting complete batch processing of all unprocessed sessions...\n');
// Process with custom parameters
await processUnprocessedSessions(50, 3); // Process 50 sessions with 3 concurrent workers
// Process all unprocessed sessions in batches until completion
const result = await processUnprocessedSessions(10, 3);
console.log('\n✅ Processing trigger completed!');
console.log('\n🎉 Complete processing finished!');
console.log(`📊 Final results: ${result.totalProcessed} processed, ${result.totalFailed} failed`);
console.log(`⏱️ Total time: ${result.totalTime.toFixed(2)}s`);
} catch (error) {
console.error('❌ Error triggering processing:', error);
console.error('❌ Error during processing:', error);
}
}
// Run the script
triggerProcessing();