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

Propagate Nexus request timeout to workers #5844

Merged
merged 4 commits into from May 15, 2024

Conversation

pdoerner
Copy link
Contributor

@pdoerner pdoerner commented May 3, 2024

What changed?

Propagating the timeout value from Nexus request headers to a matching task deadline.

Why?

So workers polling for Nexus tasks know how long they have to complete an operation.

How did you test it?

New functional tests

@pdoerner pdoerner marked this pull request as ready for review May 3, 2024 19:24
@pdoerner pdoerner requested a review from a team as a code owner May 3, 2024 19:24
@pdoerner pdoerner requested a review from bergundy May 3, 2024 19:24
Copy link
Member

@bergundy bergundy left a comment

Choose a reason for hiding this comment

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

Overall LGTM.

tests/nexus_api_test.go Show resolved Hide resolved
@pdoerner pdoerner merged commit 2ccf4df into temporalio:main May 15, 2024
42 checks passed
@pdoerner pdoerner deleted the propagate-nexus-task-deadline branch May 15, 2024 17:30
ychebotarev pushed a commit to ychebotarev/temporal that referenced this pull request May 16, 2024
## What changed?
<!-- Describe what has changed in this PR -->
Propagating the timeout value from Nexus request headers to a matching
task deadline.

## Why?
<!-- Tell your future self why have you made these changes -->
So workers polling for Nexus tasks know how long they have to complete
an operation.

## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
New functional tests
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.

None yet

2 participants