spring-cloud-dataflow
spring-cloud-dataflow copied to clipboard
Error while try to stop scheduled task which are running
Hi,
I create scheduled task (CronJob on k8s). When this CronJob starts and I would like to stopped them via SCDF (2.10.0) I've got error:
"Caught exception while handling a request\norg.springframework.cloud.task.listener.TaskExecutionException: No platform could be found for task execution id 4913\n\tat org.springframework.cloud.dataflow.server.service.impl.DefaultTaskExecutionService.cancelTaskExecution(DefaultTaskExecutionService.java:823)\n\tat org.springframework.cloud.dataflow.server.service.impl.DefaultTaskExecutionService.stopTaskExecution(D
Thank you for reporting. Currently tasks that are launched via cronjob do not store the metadata required by dataflow to determine which platform the task is currently executing. We have discussed adding this information to the task via properties or labels. This is similar to https://github.com/spring-cloud/spring-cloud-dataflow/issues/4996 as it pertains to SCDF storing metadata about the task launch with the pod.