Make EventBus Timeout Configurable#39
Merged
sbesson merged 1 commit intoglencoesoftware:masterfrom Mar 5, 2026
Merged
Conversation
sbesson
approved these changes
Mar 5, 2026
Member
sbesson
left a comment
There was a problem hiding this comment.
Tested using the sample synthetic file as glencoesoftware/omero-ms-image-region#160 (review) and the webclient/render_thumbnail/size/<size>/<id>/ endpoint.
When using a thumbnail size that has not already been generated, the render call exceeds the default 15s timeout (3 channels with a 5s delay per channel) and results in a 500 error. Re-running the same request returns immediately. Increasing the timeout to 20s via the configuration allows to request a thumbnail of different size without hitting the micro-service timeout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #37
See github.com/glencoesoftware/omero-ms-image-region/pull/160
This PR is mostly for consistency with omero-ms-image-region in allowing the configuration of the EventBus send timeout in the
config.ymlfile.Testing
This one is trickier to test. The only ways I've succeeded are:
sleepline in the code'test&sizeX=2304&sizeY=2304&sizeZ=12&sizeC=3&pixelType=uint16&sleepOpenBytes=500.fake'. Note the image ID. Then the very first call towebclient/render_birds_eye_view/<image id>/96will trigger the sleep. Set your config accordingly to induce the timeout.