spring-cloud-dataflow icon indicating copy to clipboard operation
spring-cloud-dataflow copied to clipboard

Get task executions by parentId

Open VladimirLyubimov opened this issue 2 years ago • 1 comments

Problem description: When we work with composed task after task execution begins we only have executionId of parent task (parentId), so we want to get TaskExecution-s of all existing subtask executions by parentId.

Solution description: Add additional API method which consumes parentId and returns, for example, ExtendedTaskExecutionResource which is ordinary TaskExecutionResource with collection of subtask executions (they are ordinary TaskExecutionResources)

Description of alternatives: Now there is two avaliable alternatives to bypass nonexistence of this method. First is receiving all tasks' executions and perform searching by parentId on "client side". Second is receiving executions for every subtask by specific task name (its possible get subtask name from parent task name and DSL) and perform searching by parentId on "client side.

VladimirLyubimov avatar Oct 09 '23 19:10 VladimirLyubimov

Fixes org.springframework.cloud.dataflow.rest.client.dsl.task.Task#executionByParentExecutionId not using schemaTarget and potentially causing performance hit of listing all task executions.

corneil avatar Oct 23 '23 15:10 corneil