mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 17:12:10 +01:00
Broken shit
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user