mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 07:12:08 +01:00
DB refactor
This commit is contained in:
17
test-ai-processing.ts
Normal file
17
test-ai-processing.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import { processUnprocessedSessions } from './lib/processingScheduler';
|
||||
|
||||
async function testAIProcessing() {
|
||||
console.log('=== TESTING AI PROCESSING ===\n');
|
||||
|
||||
try {
|
||||
// Process with batch size of 10 to test multiple batches (since we have 109 sessions)
|
||||
await processUnprocessedSessions(10, 3); // batch size 10, max concurrency 3
|
||||
|
||||
console.log('\n=== AI PROCESSING COMPLETED ===');
|
||||
|
||||
} catch (error) {
|
||||
console.error('Error during AI processing:', error);
|
||||
}
|
||||
}
|
||||
|
||||
testAIProcessing();
|
||||
Reference in New Issue
Block a user