본문 바로가기
프로그래밍/spring

Spring cloud dataflow

by 낭만프로그래머. 2021. 5. 13.

composite task  를 사용할때 유의점

spring.cloud.task.closecontext-enabled=true  설정을 composite task 를 생성할때 줘야한다.

설정을 안하게 되면  Spring cloud dataflow  dashboard 상에 task. 성공실패 등의 정보가 표시가 잘못되는것은 물론

Condition 에 따라서 분기를 하는부분에 문제가 생길수있다.

 

Composite Task 를 사용할때 사용할수 있는 설정들

  1. --interval-time-between-checks=1000 states that the Composed Task Runner will wait 1 second between checks to make sure that a task is complete (the default is 10 seconds).
  2. --split-thread-core-pool-size=4 states that we want up to 4 simulatenous tasks to run at the same time.
  3. --spring.cloud.task.closecontext-enabled=true states that we want the Spring Context to close when the Composed Task Runner.