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

Passing arguments to spring cloud tasks


I used composed task runner to run two tasks. These two tasks refer to simple spring boot applications. I want to pass launch time arguments to the two child tasks. The arguments are different for each child tasks. I read that properties can be sent to individual tasks. Is there a way to do the same for arguments ?

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


Solution

  • Yes, you can pass arguments as well as properties for the individual child tasks.

    The usage for this is documented in SCDF documentation here.