I have a small spring-bach application and deploy it locally in scdf. It works fine so far, taskexecutions run and the metadata tables are filled. Except for one - TASK_TASK_BATCH! I see the log output of the TaskBatchExecutionListener with "The job execution [id] was run within the task execution [id]" but no records are written by taskBatchDao.saveRelationship. So I wrote my own JobListener and wrote the records myself via a repository in a transaction to which I explicitly assign the transaction manager of the metadatasource. But this cannot be the solution. Thanks in advance
Spring Cloud Task-Batch - taskBatchDao.saveRelationship doesn't write data
90 Views Asked by dgerhardt At
1
There are 1 best solutions below
Related Questions in SPRING-BATCH
- How to customize the Spring Batch default configuration without breaking autoconfiguration
- Is there any catch in Reading and Updating to the same Oracle table in Single Threaded Spring batch job?
- Starting first job causes - Dispatcher has no subscribers for channel exception when declared multiple DirectChannels
- Looping Over a Group of Steps in Spring Batch
- Already value [datasource.ConnectionHolder@6b144bd8] for key [datasource.DriverManagerDataSource@56739ee9] bound to thread [main]
- How to Use ControllerAdvice for Exception Handling in Spring Batch Application?
- Writing in multiple related tables in spring batch
- Restarting a FAILED job is not processing the failed chunk data again : Continuation
- Spring Batch Not persisting Data Properly in MYSQL Database
- Strange Spring Batch exception, something I did wrong?
- Parameter 0 of method jobBean in com.nextuple.BatchProcessing.config.BatchConfig required a bean named 'dataSource' that could not be found
- is spring batch supports parquet file reading and writing
- Spring Batch 5 - Don't want it to automatically create tables in database
- Transaction flow for distributed transaction in Spring Batch
- How to solve JobBuilder deprecated in SpringBatch 5.1.1
Related Questions in SPRING-CLOUD-DATAFLOW
- How can I make task to reuse all of the properties from previous successful run in Spring Cloud DataFlow
- Getting "CF-InvalidAuthToken(1000): Invalid Auth Token" while launching the tasks in Spring Cloud Data Flow 2.11.1
- running maven task on spring cloud data flow in kubernetes platform
- spring-cloud-dataflow 2.11.2
- SCDF server gets "connection refused" when connecting to skipper
- Not Able to Register app using SCDF 2.11.2 Dashboard UI due to one mandatory field (Spring boot version) which is disabled in my Application
- Spring Cloud DataFlow - SpringBoot3 not showing stats of execution
- Deploying java 17 apps on Spring cloud data flow 2.9.6
- Spring Cloud Data Flow jar task on kubernetes
- Is spring-cloud-dataflow-rest-client with Spring Boot 3 support already available?
- Not able to to establish Github Oauth2 authentication for Spring cloud dataflow
- Trying to update Spring Cloud Dataflow v2.9.4 to 2.11.2 on Pivotal CloudFoundry but getting errors during deployment
- SCDF UI doesnt override the properties either in the property or in argument section
- spring-cloud-dataflow UI timezone use only UTC?
- SCDF Adds additional Cloud Foundry specific Props on a K8s install
Related Questions in SPRING-CLOUD-TASK
- Spring Cloud Task execution fails when running via SpringCloud dataflow server 2.11.2 with Invalid TaskExecution ID, but works fine with 2.10
- Set-up the same TransactionManager on Batch repository and Task repository with Spring Boot auto-config
- Restarting only failed partitions of a Cloud Task in Spring Cloud Data Flow on K8s platform
- Spring Cloud Data Flow 2.10.3 : may i launch a Task linked to a specific application version, instead of default version
- Spring cloud task(composed Task) restart from the failed job
- SCDF Task Kubernetes Persistent Volume attachment
- how to track Spring Cloud Task execution results
- Spring boot cloud task without springs task tables
- An error occurred when running the spring cloud task batch app
- Spring cloud task in dataflow dashboard is complete but one partition of spring batch failed
- The import org.springframework.cloud.task.Task cannot be resolved
- Set SCDF CTR to execute next task immediately when step is complete
- Spring Cloud Dataflow with tasks based on Spring Boot 3 and Spring Batch 5
- Migrating H2 configuration in Spring Batch for Spring Boot 2.7
- Spring cloud Data Flow Task sample python task not working
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You need to expose your
Jobas a bean. Then theTaskBatchExecutionListenerBeanPostProcessorwill add theTaskBatchExecutionListeneras a job listener to your job.For all other features of Spring Batch or Spring Cloud Task, it is not necessary that each job is a bean. But if it's not, you'll need to add the
TaskBatchExecutionListenerto the jobs yourself.If you have the artifact
spring-cloud-task-batchon the classpath, and use the annotation@EnableTask, then your application context contains aTaskBatchExecutionListenerbean that you can autowire.