Skip to content

Revisit default lifecycle phases and timeouts (e.g. for ThreadPoolTaskScheduler) #32152

Description

@jhoeller

A recent case in Spring Integration and scenarios as shown in #32109 suggest that we should revisit our default lifecycle phases: currently Integer.MAX_VALUE for ThreadPoolTaskScheduler which leads to it being in the first round of stopping, not giving other tasks room for a custom phase earlier than that without tweaking the scheduler's own phase definition. Also, the default timeout for a lifecycle phase is 30 seconds which seems long (in particular in common cloud deployment arrangements) if you may actually plan to run into this in certain scenarios.

Activity

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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions