Commit Graph

197 Commits

Author SHA1 Message Date
Glenn Renfro
a7384713e0 Update duplicate Datasource test with new exception message
Signed-off-by: Glenn Renfro <grenfro@vmware.com>
2024-11-19 07:39:34 -05:00
Glenn Renfro
cb903ec501 Use Locale.ROOT for Strings upper and lower case instead of default 2024-10-17 07:28:31 -04:00
Glenn Renfro
5c68b5fc84 DefaultTaskConfigurer should have a ctor that accepts TaskProperties 2024-09-05 10:45:16 -04:00
Glenn Renfro
704bd5eb19 Support null startTime and EndTime for Db2 Task Execution Create
resolves #948
2024-06-03 11:08:06 -04:00
Glenn Renfro
d721ab7c26 Update tests to new format of exception messages 2024-03-06 08:40:28 -05:00
Glenn Renfro
25babdf582 EntityManager uses jakarta package not javax 2024-01-02 09:28:56 -05:00
Glenn Renfro
7cd9863a51 Make parentExecutionId available to BeforeTask methods 2023-12-18 16:47:45 -05:00
wjyan
45c41b7d56 Add configuration metadata of spring.cloud.task.transaction-manager 2023-11-17 12:16:59 -05:00
wjyan
8f1b318db4 Fixed the bug where spring.cloud.task.transaction-manager was not working
Added additional for the default case
2023-11-17 10:04:49 -05:00
Glenn Renfro
63ab5b1daf Update versions and update code format 2023-09-25 12:22:51 -04:00
Glenn Renfro
40566a5bc7 Add support for querying externalExecutionId
resolves #863
2023-09-11 10:57:07 -04:00
Glenn Renfro
dbbae91056 User can establish taskNameReslover via configurer vs SimpleTaskAutoConfiguration.
resolves #801
2023-09-07 16:30:10 -04:00
Glenn Renfro
05b553dbde Closed an observation left open in TaskListener task
This caused observation tests to fail after test reshuffling.
2023-07-05 15:05:22 -04:00
Glenn Renfro
f7d52e6f12 Merged MapTaskExecutionTests into TaskExecutionDaoTests
Removes duplicated code.

Resolves #427
2023-02-24 17:31:45 -05:00
Glenn Renfro
d5aa3777aa Fixed bug where there was a missing column in updates
Also set the correct table name for CREATED_DATE.
Also incorrect data type for CREATED_DATE in TASK_LOCK

resolves #885
2023-01-20 13:40:13 -05:00
Glenn Renfro
ea0f7b9049 Added docs for tests to fix checkstyle errors 2023-01-19 18:24:45 -05:00
Mahmoud Ben Hassine
77c83fbaa1 Add missing resource hints for DDL schema definitions
Issue #849
2022-11-30 17:51:31 +01:00
Glenn Renfro
8c450c4c75 Updated to set the order for TaskRepositoryDatabaseInitializerDetector
This is a workaround until https://github.com/spring-projects/spring-boot/issues/33374 is resolved
2022-11-28 08:36:36 -05:00
Glenn Renfro
c5ed468a6d Sql Server incrementer is now supported by the spring framework 2022-11-08 15:50:28 -05:00
Henning Poettker
a3ade22e25 Let TaskRepository depend on database initializers 2022-10-30 09:18:00 -04:00
Glenn Renfro
f857359196 Add support for mariadb
resolves #833

PagingProvider and integration tests added
2022-10-28 13:38:48 -04:00
Glenn Renfro
667852e348 Autoconfiguration files are now annotated with @Autoconfiguration
This is a new standard for boot 3.0
Replaced deprecated constructors for batch test
Added Oracle migration script for ordered sequence
2022-10-19 14:23:12 -04:00
Glenn Renfro
2f3d713fe0 Created DB Migration Scripts for updated Timestamp fields
Timestamp fields are set to a length of 9 for DBs that support it
2022-10-18 15:21:50 -04:00
Glenn Renfro
a0fda4bf6e Set Spring Cloud Task Date Strategy to match Batch
resolves #868
Signed-off-by: Glenn Renfro <grenfro@vmware.com>

Updated the timestamps for H2,oracle, db2, hsqldb to be 9 digits for improved accuracy
2022-10-18 14:20:57 -04:00
Glenn Renfro
4c5b88c338 Added hint for TaskExecution for stream processing
The streamBridge is not included in Spring Cloud Stream AOT processing, and thus when Jackson parsing uses reflection it can't find TaskExecution
So TaskExecution needed to be added for task-events
2022-10-12 13:20:45 -04:00
Glenn Renfro
002a565a15 Updated metrics docs so that they are configured properly
Updated micrometer doc plugin so it won't impact cloud doc gen
2022-10-11 09:16:29 -04:00
Glenn Renfro
2ef93291fc Updated Task to the latests snapshot of Micrometer
Updated to handle the batch changes

Removing aot execution from sample apps

Remove snapshot version and rely on bom

Signed-off-by: Glenn Renfro <grenfro@vmware.com>
2022-10-10 14:36:14 -04:00
Glenn Renfro
b0525c72e5 Fixed errors from Javadocs 2022-09-30 08:45:29 -04:00
Glenn Renfro
25cf280f78 StartTime is now honored for TaskExecution
regardless if they were created before or during task execution.

resolves #861
2022-09-14 11:00:12 -04:00
Glenn Renfro
f30ac7e5b3 Updated to handle ObservationConvention migration 2022-09-09 17:43:59 -04:00
Glenn Renfro
3609e53751 Updated Observation code to use the updates offered by the Micrometer snapshot 2022-09-06 17:33:13 -04:00
Mahmoud Ben Hassine
e4581420b0 Allow users to select the transaction manager to use in TaskRepository
* Update `@Transactional` attribute to use `spring.cloud.task.transaction-manager` property
* Make `springCloudTaskTransactionManager` bean definition conditional on a missing property

Issue #769
2022-08-31 16:55:46 -04:00
Glenn Renfro
1ff5bc9ec5 Updated to cleanup hints that are no longer necessary 2022-08-26 16:29:18 -04:00
Glenn Renfro
9c3fccc741 For Native compilation getTaskRepository for SimpleTaskAC has to be narrowed
it has to be set to the specific SimpleTaskRepository
Removed proxy-target-class flag from demos.

Added comments for which hints can be removed
2022-08-18 11:20:56 -04:00
Glenn Renfro
cbdb81ac38 Removed Caching when creating sequences to enforce order
resolves #853
2022-08-15 17:55:36 -04:00
Glenn Renfro
3460d9d8d1 Updated to remove invalid javadoc 2022-08-04 11:26:44 -04:00
Glenn Renfro
82fcb25ac1 Introduction of hints for Spring Task
Updated to support timestamp demonstration of native task.

Remove experimental when appropriate for the hints and remove this `spring.aop.proxy-target-class=false` from
application.properties for timestamp demo

Updated versions to the latest boot snapshot.
2022-08-03 14:22:31 -04:00
Glenn Renfro
a58410cae4 Replace Factories with import files 2022-08-02 20:01:38 -04:00
Mahmoud Ben Hassine
26c9d43c0b Change default transaction manager type to JdbcTransactionManager
This commits changes the type of the transaction manager
from `DataSourceTransactionManager` to `JdbcTransactionManager`
in the default configuration of `@EnableTask`.

The `JdbcTransactionManager` adds common JDBC exception translation
which is beneficial for Spring Cloud Task to improve exception
handling and error reporting.

Polishing
2022-07-25 13:50:59 -04:00
Glenn Renfro
76a5d12136 Updated to files to fit the Standard. 2022-07-25 11:41:43 -04:00
Glenn Renfro
2f0f78a2c8 Updating task metrics to micrometer 1.10
Changes include:
* Use Observable instead of metrics
* Update the setting of lowCardinalityTag to the correct events.
* Update the docs
* Remove EXTERNAL_EXECUTION_ID
* Utilize registry provided by boot instead of globalregistry
* Set the handler until Boot does this as shown on line 80 of TaskLifecycleConfiguration.
* Uses Observability long task timer

Updated to latest changes in Micrometer Observability

Updated based on code review and api change

Finished removing the metrics registry

Updated based on code review

Readded cloud foundry keys to observations

Renamed metrics to observations where applicable

Updated metric sample to be observation sample

Updated to set defaults and migrate tests to infrastructure

Updated based on code review

Remove duplicate keyvalues from task observation

Added DocumentedObservation to create the observation
Migrated code to use the LowerCardinality KeyNames from the DocumentedObservation
Test cleanup
Updated code based on code review

Exception is handled by the error in the observation vs logging it as a task metric key value

Updated to use ObservationConvention

Updated to handle user defined convention vs default

Removed the snapshot versions of observations

Removed unnecessary dependencies

Checkpoint tests fail after re-adding 1.10-SNAPSHOT

Replaced TimeObservationHandler with DefaultMeterObservationHandler

Updated to set micrometer to latest milestone

Updated to rename TaskValuesProvider variables to ObservationConvention
2022-07-22 17:24:08 -04:00
Glenn Renfro
68c5bb926e Removed Observation Aware interfaces 2022-07-15 11:24:53 -04:00
Glenn Renfro
f5c2d2c429 Updated to use ObservationConventionAware instead of KeyValueAware 2022-07-12 16:03:17 -07:00
Marcin Grzejszczak
18ffbdbaff Updated micrometer to the latest changes
Updated sample task metrics to include observation dependency
2022-07-08 10:53:30 -04:00
Glenn Renfro
362d73650b Batch Boot Runner only supports one job.
Needed to update TaskJobLauncher to support only one job.
Updated tests accordingly
Re-added Added tests removed from M3 release
2022-06-16 17:26:49 -04:00
Glenn Renfro
fefb7cc6ff Rolling back test change for this release
Due to updates in the latest Spring Boot these changes don't work in the old milestone
2022-06-15 08:23:32 -04:00
Glenn Renfro
c2dd779813 Disable Observability test till Boot includes ObservationConfiguration in Milestone 2022-06-15 07:59:48 -04:00
Glenn Renfro
4bd7cbff8a Update test to handle new exception message. 2022-06-14 12:31:36 -04:00
Glenn Renfro
756d97d30b Need to Autoconfigure Observations 2022-06-10 17:28:56 -04:00
Glenn Renfro
38323952ca Added Samples and Documentation for metrics
Updated documentation and sample

Updated the test to use original metrics definition
2022-06-02 16:46:09 -04:00