镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[SpringBoot] Add graceful shutdown wait time as property #2026

Open

Description

@Quinn-With-Two-Ns

Is your feature request related to a problem? Please describe.
Currently when the worker factory is shutdown by Springboot on close there is no wait to for the shutdown to finish. This can cause the application to close before all inflight tasks are finished.

Describe the solution you'd like
Add a property that will control how long the workerfactory waits before continuing shutdown.

Describe alternatives you've considered
Users can manually work around this by adding a hook to the context close event and manually shutting down the factory and waiting.

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions