Skip to content

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

Closed
@jhoeller

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.

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