Skip to content
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

enh(zendesk): lower concurrency to 3 for fetching ticket comments #8916

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

fontanierh
Copy link
Contributor

Description

We're seeing EPIPE errors and timeouts.

I suspect it is related to the 10 concurrent requests to zendesk API for comments

Risk

N/A

Deploy Plan

Deploy connectors

const res = await concurrentExecutor(
_.zip(tickets, comments),
async ([ticket, comments]) => {
if (!ticket || !comments) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both are technically | undefined as there's no typescript guarantee that both arrays are equal size

Copy link
Contributor

Choose a reason for hiding this comment

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

OOC: do you prefer this over a map over the tickets to turn them into objects?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Shorter like this but I don't have a strong opinion really

Copy link
Contributor

Choose a reason for hiding this comment

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

fair 👍

Copy link
Contributor

@aubin-tchoi aubin-tchoi left a comment

Choose a reason for hiding this comment

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

LGTM

@fontanierh fontanierh merged commit cf71c08 into main Nov 26, 2024
3 checks passed
@fontanierh fontanierh deleted the enh/zendesk-lower-concurrency-fetch-comments branch November 26, 2024 15:24
overmode pushed a commit that referenced this pull request Nov 27, 2024
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