Questions tagged [spring-cloud-task]

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).

261 questions
1
vote
1 answer

Spring batch worker pods are unable to pick custom service account for spring cloud deployer kubernetes

I am trying to run a spring batch with remote partitioning on K8s cluster using spring-cloud-deployer-kubernetes. Eventhough I have configured a service account and mentioned in my application properties the below…
1
vote
0 answers

Spring Batch pass data from writer to next job or step

I'm fairly new to Spring Batch and I would like to know if it is possible to pass data saved by writer of one job to next job or save in process and pass to next step. I've found similar question here where it says you can use a JobStep to launch…
Sujal
  • 671
  • 1
  • 16
  • 34
1
vote
0 answers

How to launch a Spring Batch Remote Partitioning with Spring Cloud Dataflow

I am trying to launch a Spring Batch Remote Partitioning with Spring Cloud Dataflow. I have a remote partitioning that is based on https://github.com/mminella/LearningSpringBatch/tree/master/src/remotePartitioning The Spring Batch (Master and Slave)…
1
vote
0 answers

Spring Cloud Data Flow : Custom DDL for Data Flow Server

I have setup a Spring Cloud Data Flow server on Kubernetes backed by an in-memory h2 database running on Kubernetes as well. I want to change the length of the columns in some of the tables that are created by SCDF. For example, I want to change…
Ping
  • 587
  • 5
  • 27
1
vote
0 answers

Spring Batch 'jobs must not be null nor empty' Error

I'm running Spring batch apps on Openshift using SCDF. I'm getting error during Spring Batch starting-up like below. What is the main reason of that? 2021-03-08 08:39:50.764 ERROR [ark-batch-template,,] 1 [main] o.s.c.t.l.TaskLifecycleListener …
1
vote
1 answer

How can I design two different projects with a single entity or a single repository?

We are developing two projects with two different teams. However, there are some common points in the two projects, for example, there are common entities and repository usage cases. How can I manage with a single entity/repository in two projects…
user14522699
1
vote
0 answers

How to define business custom properties for a task in SCDF?

I would like to develop a workflow in Spring Cloud Data Flow where each task instance would have its behavior dictate by the parameters I would have give to it at creation. For example, if I have a task that make a rest api call, I would like the…
OphyTe
  • 68
  • 9
1
vote
1 answer

SCDF - How to configure a remote maven repo on Kubernetes Deployment

I am using SCDF deployment on k8s and trying to add a new Task Application from our internal Maven repo. By default, SCDF seems to only lookup in the [springRepo] repository. I followed the documentation to add a new maven repo here . Since the…
1
vote
1 answer

Spring cloud Dataflow Failed to start bean 'taskLifecycleListener'; nested exception is java.lang.IllegalArgumentException: Invalid TaskExecution

I'm trying to execute a simple Spring Cloud Task hello world example(https://docs.spring.io/spring-cloud-task/docs/2.0.0.RELEASE/reference/htmlsingle/#getting-started-developing-first-task) in a custom Spring Cloud Dataflow Server local that uses…
1
vote
1 answer

How to configure Spring Cloud Data Flow to execute tasks in a separate namespace per task?

I am using Spring Cloud Data Flow to orchestrate the execution of tasks applications, and need to run each task app in it's dedicated namespace with it's own resource quota (some may be Guaranteed and some Burstable). Following the guide at Spring…
1
vote
1 answer

How to use spring-cloud-task with spring-cloud-deployer-cloudfoundry?

I am investigating using spring-cloud-task to execute short-lived jobs in my Cloud Foundry environments. Looking through the documentation and some youtube videos, I gathered that there should be 3 components (applications) involved for my…
1
vote
1 answer

java.lang.ClassNotFoundException on a Spring Cloud Task

I'm trying out a simple Spring Cloud Task application. I'm currently trying to run the said application but somehow I'm ending up with a java.lang.ClassNotFoundException: com.example.sampletask.demotask.DemoTaskApplication.java. I'm trying to tweak…
Uzi
  • 443
  • 6
  • 33
1
vote
1 answer

Spring batch migration to kubernetes platform

I have my current application batches developed on Spring Batch framework. Now I need to forklift the same to a Kubernetes platform for cloud nativity. Please help me with the following queries. How do I achieve auto scaling (HPA) for the spring…
Balu R
  • 87
  • 1
  • 1
  • 10
1
vote
0 answers

Spring cloud task vs Spring batch

What is the difference between Spring batch and Spring cloud Task ? What are the use cases of both, when to use what ?
1
vote
1 answer

How to create multiple tasks in one jar(Spring Cloud Task)?

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.