Skip to content

ferdinandhuebner/spring-cloud-task-listener-executor-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Cloud: observability vs. task execution listener

This sample project demonstrates an incompatibility with task observability and task execution listener implementations - either by implementing the TaskExecutionListener interface or using methods annotated with @BeforeTask, @AfterTask or @FailedTask.

If your task execution listener implements the ApplicationRunner interface and task observability is enabled, ObservationApplicationRunnerBeanPostProcessor wraps the task execution listener and the listener methods are no longer invoked.

Please refer to:

  • FooTaskRunner: An implementation of the ApplicationRunner interface that also uses methods annotated with @BeforeTask and @AfterTask
  • TaskListenerExecutorBugTest: A unit test that demonstrates the current and expected behaviour

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages