1

Use case(Spring cloud task):

I have different tasks which are independent of each other. I want to create those tasks in one jar and trigger task from command line. Is it possible ?

Also I want to schedule them using crontab. Please suggest.

1 Answers1

1

I am not sure why you would need to have all those independent tasks inside the same jar but as long as you have a way to invoke the appropriate task based on your criteria, you could use Spring Cloud Data Flow to set this up.

Ilayaperumal Gopinathan
  • 4,099
  • 1
  • 13
  • 12
  • How can we schedule wala crontab and trigger task ? – Barkha Bajaj Jul 03 '20 at 15:11
  • SCDF provides a scheduler in its UI. After creating a task you can schedule the task. Also, for triggering a task you can use the REST APIs provided by SCDF or Spring Cloud Dataflow Shell. https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/#spring-cloud-dataflow-schedule-launch-tasks https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/#spring-cloud-dataflow-task-launch – Siddhant Sorann Jul 04 '20 at 12:59