简体   繁体   English

使用ESP Scheduler进行Spring Batch调度

[英]Spring batch Scheduling using ESP Scheduler

I want to schedule spring batch jobs using ESP Scheduler. 我想使用ESP Scheduler计划春季批处理作业。 Can we even do it or not? 我们甚至可以做到吗?

One of the solutions is that we can make rest endpoints to start job, and poll the results after some time - Can we do better than this? 解决方案之一是,我们可以让其他端点开始工作,并在一段时间后轮询结果-我们能做得更好吗?

I have explored the possibilities that we can do it with Spring Cloud Data Flow. 我探索了使用Spring Cloud Data Flow可以实现的可能性。 But how it can be achieved? 但是如何实现呢?

A batch-job is a workflow made of steps and transitions. 批处理作业是由步骤和过渡组成的工作流程。 You can orchestrate a direct-acyclic graph with the programming model. 您可以使用编程模型来编排直接非循环图。 A common method to schedule batch-jobs is via the webhook mechanism provided by the schedulers. 调度批处理作业的一种常用方法是通过调度程序提供的webhook机制。 You would have to review ESP whether or not it includes support for it. 您必须检查ESP是否包含对它的支持。

Once you have the batch-job registered and defined as a Task in SCDF, you will get a REST-API (in SCDF), which can be used to trigger the launch of the batch-job. 将批处理作业注册并定义为SCDF中的任务后,您将获得REST-API(在SCDF中),该REST-API可用于触发批处理作业的启动。 The REST-API can be used in the scheduler (via webhook) to invoke the endpoint upon a recurring schedule. REST-API可以在调度程序中使用(通过webhook)以根据定期调度调用端点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM