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
0
votes
1 answer

Spring Cloud Task status shown as complete even when the batch job fails

I have a task with 2 batch jobs, both jobs run but one of them fails. The status of the particular task is still shown as complete. i read about setting the spring.cloud.task.batch.failOnJobFailure property. When i set this property to true while…
0
votes
1 answer

Unable to add multiple parameters to task when deployed via a stream in spring cloud dataflow

I have a task which takes 3 different parameters to run it's batch jobs. When running from UI i pass them as task arguments and it works. Now I am trying to create a stream which deploys the task with these parameters every 5 mins. I'm using the…
0
votes
0 answers

Restarting job giving error as it runs with same params

I have a task with 3 different batch jobs. If one of them fails and I restart that particular one the new task execution gives the Command Line runner error as it runs the task with the same parameters as the previous task. What is the workaround…
0
votes
1 answer

Spring Cloud Dataflow Sort Jpbs or Tasks according to the last failed

Is there a way that i can sort my jobs in the job execution page or my tasks also according to the ones which failed last?
0
votes
0 answers

updating spring boot 1.2 to 1.3 and adding batch jobs to spring cloud dataflow task

We have multiple batch jobs we use which have been configured using spring boot 1.2.0 and used with spring batch admin. We are now trying to convert these jobs to tasks so that we can implement them in spring cloud dataflow. For this, I update the…
0
votes
1 answer

Spring cloud data flow Dashboard

I have local scdf running 1.5.2 release I am able to access the task UI via http://localhost:9393/dashboard/ I am able to create a timetask task. However on the top tabs I am not seeing anyway to schedule it, as mentioned…
0
votes
1 answer

How to trigger a Spring cloud task from an external application?

I have created a spring cloud task that will perform some specific task based on the requirement. I wanted to call this task from another spring boot application. Please let me know is there any way of calling the below task from an external…
Ravikiran
  • 45
  • 1
  • 7
0
votes
0 answers

Spring Cloud Data Flow Custom Task Execution always in UNKNOWN state

I'm using the local Spring Cloud Data Flow server 1.6.0.RELEASE. When I create a new simple task definition that consists solely of the built-in timestamp task and execute it the task is properly executed and the status is marked as COMPLETE. Now I…
user6845507
0
votes
1 answer

Spring batch job execution error: cannot insert NULL into (BATCH_JOB_EXECUTION.START_TIME)

I am newbie to learn spring batch framework with spring cloud. I created a simple batch job to read records from database. It seems that job failed when it tried to save job execution into database. Please advise what have been missing. Thanks. The…
kgb
  • 69
  • 1
  • 1
  • 9
0
votes
2 answers

Cron Job Microservices

I am using spring cloud and have various microservices for an online shopping vendor. Everything is working as expected. But, I got a requirement where I need to run a cron job over customer's records, get the customer's who's statement date matches…
0
votes
3 answers

Spring Cloud Dataflow - how to pass credentials to task

I use spring cloud dataflow deployed to pivotal cloud foundry, to run spring batch jobs as spring cloud tasks, and the jobs require aws credentials to access an s3 bucket. I've tried passing the aws credentials as task properties, but the…
0
votes
1 answer

JobInstanceAlreadyCompleteException when running a Batch-Task in Spring cloud Dataflow

I have a Batch job working as a Task in spring cloud dataflow. When i try to execute the same task Definition a second time i get the exception: java.lang.IllegalStateException: Failed to execute CommandLineRunner at…
Laures
  • 5,389
  • 11
  • 50
  • 76
0
votes
1 answer

Setting java timezone for all Tasks deployed to PCF using Spring Cloud Dataflow

I have a Spring Batch/Spring Cloud Task which I deploy to PCF using Spring Cloud Dataflow. I am trying to define the timezone (JAVA_OPTS:'-Duser.timezone=America/New_York') somewhere in Dataflow so that any Task deployed to it, inherits the…
0
votes
0 answers

Batch Job exit status using Spring Cloud Task

I'm trying to setup a spring batch project to be deployed on Spring Cloud Data Flow server, but first I must "wrapp" it on a Spring Cloud Task application. Spring Batch generates metadata (start/end, status, parameters, etc) on BATCH_ tables. Cloud…
anat0lius
  • 2,145
  • 6
  • 33
  • 60
0
votes
1 answer

Spring cloud task junit test case which uses hsql db is failing

I have spring boot application with @EnableTask which is working fine. I have a test case which uses hsql database as part of test case is failing with the following error. java.lang.IllegalStateException: Failed to load ApplicationContext …
Siva R
  • 427
  • 2
  • 8
  • 23