Skip to content

Added retry logic on RPC requests #175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nicoalencar
Copy link
Contributor

No description provided.

@nicoalencar nicoalencar self-assigned this May 5, 2025
timeout: 2 * 60 * 1000, // 2 minutes
keepAlive: true,
withCredentials: false,
headers: [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the contnent type from headers, we should allow for compression
Specifying json will make it so that plaintext is enforced

@@ -139,7 +139,7 @@ async function schedule(connection: Connection | null, producer: Producer | null
let wait: number;
if (duration > SECONDS_BETWEEN_RUNS * 1000) {
wait = 0;
logger.warn(`${funcName} is taking longer than desiered interval`);
logger.warn(`${funcName} is taking longer than desired interval`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lmao, I wonder how long that has been there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants