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

[core] Ensure TRG timeouts are obeyed + add polling timeout #630

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

teo
Copy link
Member

@teo teo commented Oct 23, 2024

No description provided.

@teo teo requested review from knopers8 and justonedev1 October 23, 2024 14:15
Copy link
Collaborator

@justonedev1 justonedev1 left a comment

Choose a reason for hiding this comment

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

There are a lot of new timeouts, so I hope that you have verified that adding them will not break anything by timing out sooner than expected.

timeout := callable.AcquireTimeout(TRG_START_TIMEOUT, varStack, "RunStart", envId)
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()

Copy link
Collaborator

Choose a reason for hiding this comment

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

why are you creating the context with timeout here and not next to the place where it is needed? (line 889)

Copy link
Member Author

Choose a reason for hiding this comment

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

I just did it in the same spot as in ddsched. Shouldn't change much either way, as between here and the call we only have declarations and a Kafka event.

@teo
Copy link
Member Author

teo commented Oct 24, 2024

There are a lot of new timeouts, so I hope that you have verified that adding them will not break anything by timing out sooner than expected.

This is my concern too, breaking existing behaviour, but I've been told the timeouts already set in readout-dataflow (which I also used as defaults, so 5s) are realistic.

@teo teo requested a review from justonedev1 October 24, 2024 08:29
@teo teo merged commit 4dfed95 into master Oct 24, 2024
2 checks passed
@teo teo deleted the trg-grpc-timeouts branch October 24, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants