mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
better processed logs
This commit is contained in:
@@ -50,8 +50,10 @@ export class RedisStreamService {
|
|||||||
static async startReadingLoop(options: ReadingLoopOptions, processFunction: (content: Record<string, string>) => Promise<any>) {
|
static async startReadingLoop(options: ReadingLoopOptions, processFunction: (content: Record<string, string>) => Promise<any>) {
|
||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
console.log('Processed:', (RedisStreamService.processed / 30).toFixed(), '/s');
|
if (RedisStreamService.processed > 0) {
|
||||||
RedisStreamService.processed = 0;
|
console.log('Processed:', (RedisStreamService.processed / 30).toFixed(2), '/s');
|
||||||
|
RedisStreamService.processed = 0;
|
||||||
|
}
|
||||||
}, 30_000)
|
}, 30_000)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user