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

docs: publisher executor config properties #2746

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

burkedavison
Copy link
Member

Resolves #2745

@burkedavison burkedavison requested a review from a team as a code owner March 28, 2024 18:37
Copy link

sonarcloud bot commented Mar 28, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

| `spring.cloud.gcp.pubsub.publisher.executor-wait-for-tasks-to-complete-on-shutdown` |
Sets the underlying `ThreadPoolTaskScheduler` 's https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/scheduling/concurrent/ExecutorConfigurationSupport.html#setWaitForTasksToCompleteOnShutdown(boolean)[waitForTasksToCompleteOnShutdown] property.
Determines whether to wait for scheduled tasks to complete on shutdown, not interrupting running tasks and executing all tasks in the queue.
When true, replicates the default behavior before Spring 6.1.x. | No | false
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we should default to true for backwards compatibility.

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 suggest leaving it.

This was introduced as we moved to a new major version, it just happens to be one of the breaking changes we didn't introduce directly but instead indirectly via our Spring version bumps. Customers will not be exposed to this change in behavior w/o choosing to update to a new major.

I think it would also result in an inconsistent message about which Spring behavior changes we chose to override and which we chose to keep.

@burkedavison burkedavison merged commit 590ec21 into main Apr 12, 2024
46 of 55 checks passed
@burkedavison burkedavison deleted the docs-publisher-executor-configs branch April 12, 2024 18:12
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.

Document new publisher executor configuration settings
2 participants