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
3
votes
2 answers

Getting Exception 'java.lang.IllegalStateException:Expected one datasource and found 2' when more than one datasource defined

When i define more than one datasource in my spring cloud task application , it throws an exception. This is how i have defined the datasources @Primary @Bean(name="datasource1") @ConfigurationProperties(prefix="spring.datasource") public…
Neel
  • 33
  • 6
3
votes
0 answers

how replace Spring Batch Admin by Spring Boot Admin

My straight question is: in Spring Batch Admin there is a clear concept and practical functionalities to manage the jobs. So, in Spring Batch Admin you can launch, stop one job, stop all jobs, reatart, abandon, see the status for each job and check…
Jim C
  • 3,957
  • 25
  • 85
  • 162
3
votes
2 answers

Does spring-cloud-dataflow provide support for scheduling applications defined as tasks?

I have been looking at using projects built using spring-cloud-task within spring-cloud-dataflow. Having looked at the example projects and the documentation, the indication seems to be that tasks are launched manually through the dashboard or the…
Nigel R
  • 71
  • 1
  • 4
3
votes
1 answer

Issue with configuring Atomikos on a Spring Boot / Spring Batch application

I am trying to get Atomikos to work with my Spring Boot/Spring Batch application. Here is are the relevant portions of my code: Datasource config: @Configuration public class DatasourceConfiguration extends AbstractCloudConfig { @Bean …
2
votes
1 answer

Spring Batch with multi - step Spring Cloud Task (PartitionHandler) for Remote Partition

Latest Update (with an image to hope simplify the problem) (thanks for feedback from @Mahmoud) Relate issue reports for other reference (after this original post created, it seem someone filed issues for Spring Cloud on similar issue, so also update…
Danil Ko
  • 25
  • 5
2
votes
1 answer

Task execution is not working after lunching the task in spring cloud data flow

I have created one Spring boot application with @EnablesTask annotation and try to print the arguments in log. package com.custom.samplejob; import org.springframework.boot.CommandLineRunner; import…
2
votes
1 answer

Violation of Foreign Key constraint in "task_metadata_fk" when launching a Task in SCDF Dashboard

I am trying to launch a task using the SCDF Dashboard. I am using CockroachDB as the underlying persistence layer with Hibernate ORM version 5.4.22.Final which is supported by the 2.7.0 release of SCDF as well as 2.8.0-SNAPSHOT. I am able to create…
2
votes
1 answer

Spring Cloud Data Flow Pod Cleanup

We are repeatedly seeing resource quota limitation issues in logs and Task jobs fail on the SCDF running on Kubernetes. Problem is, there are so many pods in "running" status even after they completed. I understand, SCDF does not delete the pods and…
2
votes
1 answer

How to Migrate Spring Batch Cron Jobs To Spring Cloud Task

I used quartz api for existing cron jobs but how should I configure these cron jobs with spring cloud task. We can dynamically get the cron expression definitions for each job from the DB for schedule the job, but how I need to configure it with…
2
votes
1 answer

How to pass JobParameters to a batch job launched by Spring Cloud Task?

I'm trying to launch a parameterized Spring Batch job through Spring Cloud Task. My goal is to launch it through the command line and have the application shut down after the job is executed. There is an example in the samples repo for how to…
Philippe
  • 6,703
  • 3
  • 30
  • 50
2
votes
1 answer

Schedule simple GET batch for each second or even less than one second - Should opt for Spring Cloud Task, Spring Batch or springframework.scheduling

Context: in my country there will be a new way to Instantly Payment previewed for November. Basically, the Central Bank will provide two endpoints: (1) one POST endpoint which we post a single money transfer and (2) one GET endpoint where we get the…
Jim C
  • 3,957
  • 25
  • 85
  • 162
2
votes
1 answer

PCF Task/Scheduler Job memory allocation from manifest.yml

I have a task app in the PCF. Whenever I run the task or schedule job.Memory allocation for task/job execution is not the same as for the app. It always allocated memory 512MB (default in my case). But app memory allocated for 2GB. Below is my…
2
votes
3 answers

Cloud Tasks client ignores retry configuration

Basically what the title says. The API and client docs state that a retry can be passed to create_task: retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests…
2
votes
1 answer

Spring Cloud Stream App VS Spring Cloud Task App

I'm exploring the the SCDF for orchestrating the existing batch task for my system. I noticed that the SC Stream App Starters already provides some OOTB ready to use streaming applications, which suits my use case of: Extracting xml file from FTP…
2
votes
1 answer

Error when launching tasks with multiple arguments from UI spring cloud dataflow

I have a batch job with takes 2 parameters. when I pass these arguments while running the jar file directly, it works. Also when i pass these arguments via the shell of the spring cloud dataflow it works: dataflow:>task launch --name adv-load…
1
2
3
17 18