Skip to content

Commit 7930569

Browse files
committed
docs
1 parent bc95654 commit 7930569

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/ws-worker/src/util/send-event.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ export const sendEvent = <T>(
5555
if (!allowRetryOntimeout || thisAttempt >= timeoutRetryCount) {
5656
report(new LightningTimeoutError(event));
5757
} else {
58+
// TODO at the moment, this retry logic all shares the same timeout,
59+
// where the timeout is controlled by the event processor
60+
// When we want to restore retries, we need to retry in the event
61+
// processor - not here
62+
// This actually feels cleaner and easier to test anyway
5863
logger.warn(
5964
`${runId} event ${event} timed out, will retry in ${timeoutRetryDelay}ms (attempt ${
6065
thisAttempt + 1

0 commit comments

Comments
 (0)