Spring Cloud Data Flow – 重新启动/重试组合任务的中间部分

huangapple go评论80阅读模式
英文:

Spring Cloud Data Flow - relaunch/retry Composed Task from the middle

问题

我在Spring Cloud Data Flow服务器中有一个组合任务,如下所示:
Spring Cloud Data Flow – 重新启动/重试组合任务的中间部分

如果 task-b 生成退出消息为 FAIL,那么它将执行 task-d 并结束流程。
我希望在问题修复后可以从 task-b 再次重试这个任务/组合任务,以便它可以按照下一个路径到达 task-c。作为 task-a 的一部分完成了一些大规模处理,我想避免再次执行此任务。

当我尝试从 '任务执行' 标签启动 task-b 时,它只运行了 task-b 然后停止了。
从 '作业执行' 部分,我看不到从 task-b 重试作业/组合任务的选项。

我应该如何实现这一点?

英文:

I have a Composed Task in Spring Cloud Data Flow server as below:
Spring Cloud Data Flow – 重新启动/重试组合任务的中间部分

If task-b produces the exit message as FAIL then it will execute task-d and end the flow.
I would like to retry this job/composed-task from task-b again once the issue was fixed so that it can follow the next path to task-c. There is some large processing done as a part of task-a and I want to avoid repeating this task again.

When I try to launch the task-b from 'Task execution' tab, it only ran task-b and then stopped.
From 'Job executions' section, I cannot see any option to retry the job/composed-task from task-b.

How can I implement this?

答案1

得分: 1

@adesai 感谢您的问题。在您提出的情况下,此组合任务运行器启动被视为成功,因为它有一个选项,即如果Task-b“失败”,就会启动Task-d。因此,它不能被重新启动,因为它成功了。一个选择是建议为组合任务运行器添加一个功能,允许您指定一个逗号分隔的任务列表,应该跳过它。类似于composed-task-runner.skip-steps=task-a。如果这个功能有用的话,您可以在数据流上提出一个问题。

英文:

@adesai Thank you for question.
In the scenario that you present, this Composed Task Runner launch is considered successful since it had an option to take if Task-b "Failed" namely to launch Task-d. Thus it can't be restarted, since it was successful.
One option is to suggest adding a feature to composed task runner that would allow you to specify a comma delimited list of tasks that it should skip. Something like composed-task-runner.skip-steps=task-a.
You could open an issue on data flow for this, if this feature would be useful.

huangapple
  • 本文由 发表于 2023年3月3日 23:48:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/75629196.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定