summaryrefslogtreecommitdiff
path: root/packages/backend/src/queue
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-01-30 22:38:29 -0500
committerHazelnoot <acomputerdog@gmail.com>2025-02-16 19:25:24 -0500
commit4858276465a764f4e0973a463428a653a2a466ab (patch)
treec6b8771a6e5cc13fe38d5bbf01837bd68510f381 /packages/backend/src/queue
parentimplement AP fetch logs (diff)
downloadsharkey-4858276465a764f4e0973a463428a653a2a466ab.tar.gz
sharkey-4858276465a764f4e0973a463428a653a2a466ab.tar.bz2
sharkey-4858276465a764f4e0973a463428a653a2a466ab.zip
don't log slow activities, as this is known to happen under regular circumstances
Diffstat (limited to 'packages/backend/src/queue')
-rw-r--r--packages/backend/src/queue/processors/InboxProcessorService.ts9
1 files changed, 1 insertions, 8 deletions
diff --git a/packages/backend/src/queue/processors/InboxProcessorService.ts b/packages/backend/src/queue/processors/InboxProcessorService.ts
index 557a759136..35a0bf095d 100644
--- a/packages/backend/src/queue/processors/InboxProcessorService.ts
+++ b/packages/backend/src/queue/processors/InboxProcessorService.ts
@@ -97,14 +97,7 @@ export class InboxProcessorService implements OnApplicationShutdown {
throw err;
} finally {
- const duration = log.duration = calculateDurationSince(startTime);
-
- // TODO remove this
- // Activities should time out after roughly 5 seconds.
- // A runtime longer than 10 seconds could indicate a problem or attack.
- if (duration > 10000) {
- this.logger.warn(`Activity ${JSON.stringify(activity.id)} by "${keyId}" took ${(duration / 1000).toFixed(1)} seconds to complete`);
- }
+ log.duration = calculateDurationSince(startTime);
// Save or finalize asynchronously
this.apLogService.saveInboxLog(log)