spring-cloud-dataflowspring-cloud-dataflow-ui

Spring Cloud Data Flow preconfigured tasks


Spring Cloud Data Flow is a great solution and currently I'm trying to find the possibility to preconfigure the tasks in order to trigger them manually. The use-case very simple:

Preconfigured tasks is the task with all parameters needed for execution.

Is it possible to have such functionality?

Thank you.


Solution

  • You may want to review the continuous deployment section from the reference guide. There's built-in lifecycle semantics for orchestrating tasks in SCDF.

    Assuming you have the Task applications already built and that the DevOps persona is familiar with how the applications work together, they can either interactively or programmatically build a composed-task definition and task/job parameters in SCDF.

    The above step persists the task definition in the SCDF's database. Now, the same definition can be launched manually or via a cronjob schedule.

    If nothing really changes to the definition, app version, or the task/parameters, yes, anyone with the ROLE_DEPLOY role can interact with it.

    You may also find the CD for Tasks guide useful reference material. Perhaps repeat this locally (with desired security configurations) on your environment to get a hold of how it works.