Search code examples
spring-cloudspring-cloud-streamspring-cloud-dataflowspring-cloud-task

Individual task in composed task is not exiting


I used composed task runner to run two tasks. These two tasks refer to simple spring boot applications. While launching the composed task, the first applications in the graph gets executed, but not exiting. Hence, the second application is not starting. If I configure both tasks to run in parallel, both the applications executes but doesn't exit.

Reference task : composed-task-runner --graph = task1 && task2

How do I make the tasks exit properly ?


Solution

  • The issue is the datasource. I was using different datasource for the server and spring cloud task. Once I specify the same datasource for everything, it worked