Spring Cloud Task allows a user to develop and run short lived microservices using Spring Cloud and run them locally, in the cloud, even on Spring Cloud Data Flow. Just add @EnableTask and run your app as a Spring Boot app (single application context).
Questions tagged [spring-cloud-task]
261 questions
12
votes
5 answers
Multiple Spring boot CommandLineRunner based on command line argument
I have created spring boot application with spring cloud task which should executes a few commands(tasks).
Each task/command is shorted-lived task, and all tasks are start from command line, do some short ETL job and finish execution.
There is one…

Shay
- 121
- 1
- 1
- 6
6
votes
2 answers
spring Batch flow job Vs spring composed task
I want to execute my apps using spring-complex-task and I have already build complex spring-batch Flow Jobs which executes perfectly fine.
could you please explain what is difference between spring Batch flow job Vs spring composed task? and which…

jignesh vaghela
- 61
- 1
- 3
6
votes
2 answers
How to run a spring application on cloud foundry as a one-off task using the java buildpack
I would like to run a spring application on cloudfoundry as a one-off task using the java buildpack.
Please note that my app is not a web application but a spring batch application that also uses spring cloud task.
Here is my…

balteo
- 23,602
- 63
- 219
- 412
5
votes
1 answer
Difference between Spring Cloud Task and Spring Batch?
I went through the Introducing Spring Cloud Task, but things are not clear for the following questions.
I'm using Spring Batch
What's the use of Spring Cloud Task when we already have the metadata provided by Spring Batch ?
We're planning to use…

Jeff Cook
- 7,956
- 36
- 115
- 186
5
votes
1 answer
JobRestartException: JobInstance already exists and is not restartable
I'm using Spring Batch with Spring cloud tasks. I have the following configuration in my job:
@Bean
public Job jobDemo(
@Value("${jobname}")String jobName,
JobBuilderFactory jobBuilderFactory,
…

Nikhil Pareek
- 734
- 9
- 24
5
votes
1 answer
How to dynamic deploy for standalone Spring batch using Spring Cloud Task
We are planning to retire the existing legacy java batch applications and recreate it with the latest available batch framework.
Given that we have a large number of batch jobs to be modernised, we are looking for a framework or architecture that…

Manikdn84
- 357
- 4
- 21
5
votes
2 answers
Spring cloud task's SimpleTaskConfiguration and spring batch's SimpleBatchConfiguration preventing spring boot auto configuration of XA transactions
I am trying to configure XA/distributed transactions for a spring batch / spring cloud task application configured with spring boot.
I have added the following dependency hoping to rely on spring boot auto…

balteo
- 23,602
- 63
- 219
- 412
4
votes
1 answer
Getting Oracle 11.2 Unsupported Error when using Spring Cloud Data Flow 2.0.1
I am trying to set up SCDF 2.x (Spring Cloud Data Flow) server, to register Spring Boot applications (e.g. Tasks type) , to leverage out of box administration and other capabilities.
In setting up SCDF 2.x, was trying to connect to new 'dataflow'…

Arpit S
- 137
- 2
- 10
4
votes
1 answer
Advantage of using Spring cloud data flow instead of spring batch
We need to write an application to read a flat file every day and write into a database table. We are planning to use Spring Batch to do this job.
The limitation and addition we are looking for are
1.The application itself would run in a single VM.…

user3720735
- 41
- 1
- 3
3
votes
1 answer
Spring Cloud Dataflow - handling argument in Task
I would like to pass the ID of an object to a variable when starting a Task in Spring Cloud Dataflow. I know that it can be done with arguments or parameters, but I don't know how to handle these arguments or parameters in Java code so I can take…

xampo
- 369
- 1
- 7
- 22
3
votes
1 answer
spring boot batch to spring cloud task with multiple jobs
I have a spring boot batch application that has 5 unique jobs that execute by console using the command:
java -jar artifactName jobName param1
but now this project will be move to cloud, so I need to use spring cloud task. So far so good.
I know…

Rodrigo Caceres
- 31
- 3
3
votes
1 answer
Spring cloud task on data flow server vs @EnableTask
I am new to Spring cloud data flow. Trying to figure out what it mean by registering, creating a task on spring cloud data flow server vs running a spring class with annotation @EnableTask
Any clarification to understand what these two are, will be…

mjs
- 139
- 8
3
votes
0 answers
Spring Batch/Task Repository Data Mismatch when introducing use of Tasks after historic Spring Batch data already exists
My project has 20+ batch jobs that are built with Spring Batch and have been in Production for a couple of years. We are currently in the process of migrating them to individual Spring Boot applications that are built with Spring Batch and Spring…

lframirez89
- 41
- 4
3
votes
1 answer
Spring Cloud Task - specify database config
I have Spring Cloud Task that loads data from SQL Server to Cassandra DB which will be run on Spring Cloud Data Flow.
One of the requirement of Spring Task is to provide relational database to persist metadata like task execution state. But I don't…

indusBull
- 1,834
- 5
- 27
- 39
3
votes
1 answer
do I need one JVM process for each spring cloud tasktrigger?
We have many batch jobs which today are scheduled via cron expressions in a single application. We would like to isolate these jobs more and therefore move them to spring cloud task.
But reading the documentation [1], I come to the conclusion that…

domi
- 2,167
- 1
- 28
- 45