简体   繁体   中英

Spring batch Scheduling using ESP Scheduler

I want to schedule spring batch jobs using 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. 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. You would have to review ESP whether or not it includes support for it.

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. The REST-API can be used in the scheduler (via webhook) to invoke the endpoint upon a recurring schedule.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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