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

internal/daemon/controller+worker: propagate downstream timeout #5083

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

johanbrandhorst
Copy link
Collaborator

Propagate the downstream worker timeout into the downstream receiver and downstream ticker so we have a configurable consistent timeout value to use for worker to worker interactions.

Also change the atomic.Pointer to an atomic.Int64 for consistency with other values.

@johanbrandhorst johanbrandhorst added this to the 0.17.x milestone Sep 6, 2024
@johanbrandhorst johanbrandhorst force-pushed the jbrandhorst-downstream-timeout-propagation branch from 7299066 to b5972fc Compare September 9, 2024 16:40
@johanbrandhorst johanbrandhorst marked this pull request as ready for review September 9, 2024 16:40
@@ -24,6 +24,7 @@ func TestWorkerWaitForNextSuccessfulStatusUpdate(t *testing.T) {
})
err := event.InitSysEventer(testLogger, testLock, "TestWorkerWaitForNextSuccessfulStatusUpdate", event.WithEventerConfig(testConfig))
require.NoError(t, err)
t.Cleanup(func() { event.TestResetSystEventer(t) })
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This fixes a test-to-test order dependency in this package

Propagate the downstream worker timeout into the
downstream receiver and downstream ticker
so we have a configurable consistent timeout
value to use for worker to worker interactions.

Also change the atomic.Pointer to an atomic.Int64
for consistency with other values.
@johanbrandhorst johanbrandhorst force-pushed the jbrandhorst-downstream-timeout-propagation branch from b5972fc to 370edd4 Compare September 9, 2024 19:50
@irenarindos irenarindos merged commit 41de35f into main Sep 11, 2024
65 checks passed
@irenarindos irenarindos deleted the jbrandhorst-downstream-timeout-propagation branch September 11, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants