Skip to content

Auto-configure a sensible TaskExecutor #1563

Closed

Description

@BigMichi1

it would be really nice if spring-boot has an auto-configuration for the AsyncTaskExecutor. So if an @EnableAsync is found a AsyncTaskExecutor bean is provided based on the environment. If there is support for jsr236 (e.g. wildfly) the DefaultManagedTaskExecutor is used by looking in jndi and when not a ThreadPoolTaskExecutor or a SimpleAsyncTaskExecutor is used.

Perhaps this can be combined with the @EnableScheduling configuration

Activity

  1. philwebb commented on Sep 16, 2014

    @philwebb
    Member

    See also #1397

  2. added
    type: enhancement
    on Sep 16, 2014
  3. philwebb commented on Sep 16, 2014

    @philwebb
    Member

    @snicoll Did we discuss this briefly already? any thoughts?

  4. snicoll commented on Sep 16, 2014

    @snicoll
    Member

    I don't think we did but if we feel we should change Spring's own defaults we should just do it. This may require a larger discussion though (as mentioned by your link)

  5. added
    status: ideal-for-contribution
    on Sep 23, 2014
  6. removed
    status: ideal-for-contribution
    on Apr 24, 2016
  7. added this to the milestone on Mar 22, 2018
  8. self-assigned this
    on Aug 1, 2018
  9. changed the title [-]Autoconfig for AsyncTaskExecutor[/-] [+]Auto-configure a sensible TaskExecutor[/+] on Aug 6, 2018
  10. modified the milestones: Backlog, 2.1.0.M2 on Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions