feature(worker+api): improve buffer

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-17 23:37:11 +02:00
parent 32e91959f6
commit 545cbfd520
18 changed files with 1484 additions and 432 deletions

View File

@@ -12,10 +12,10 @@ export async function cronJob(job: Job<CronQueuePayload>) {
return await salt();
}
case 'flushEvents': {
return await eventBuffer.flush();
return await eventBuffer.tryFlush();
}
case 'flushProfiles': {
return await profileBuffer.flush();
return await profileBuffer.tryFlush();
}
case 'ping': {
return await ping();