Commit Graph

164 Commits

Author SHA1 Message Date
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
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
Marcin Grzejszczak
3817fe14e7 Support Observations for CommandLineRunner and ApplicationRunner
First pass on observation

Added automatic docs generation

Renamed Observed -> Observation

Fixed copyright dates

Removed execution task listener - it makes runner spans share the same trace id

Updated version for micrometer docs to milestone
2022-05-31 16:31:22 -04:00
Glenn Renfro
1284c80c5e Updated to set the proper PlatformTransactionManager for Single-Task
Spring integration's DefaultLockRepository requires a TransactionManager.
However it assumes that only one is available.   Since task can have more than one, we are allowed to tell SI which one to use
2022-05-20 16:50:08 -04:00
Tyler Carpenter-Rivers
fc89e23144 resolves https://github.com/spring-cloud/spring-cloud-task/issues/780
update db2 'between' logic to be exclusive

Signed-off-by: Ryan DCruz <rd@enfuse.io>

use .acceptLicense() instead of the classpath file

checkstyle

add test to verify a result set that's smaller than requested page size

cleanup
2022-05-02 16:33:10 -04:00
Glenn Renfro
62cccc2727 Rename Oracle ddl script name to be accurate.
Original schema name for oracle was schema-oracle10g.sql which was inaccurate.   It should just be schema-oracle.sql.
2022-04-27 16:00:06 -04:00
Henning Poettker
709618db1d Add default methods in TaskExecutionListener 2022-03-21 10:32:53 -04:00
Glenn Renfro
397ac4d026 Updating javax packaging to jakarta 2022-03-21 10:26:04 -04:00
Glenn Renfro
300c767710 Update Task to resolve Micromenter 2.0.x upgrade issue.
This will resolve the current issue, but improvements to Task's use of Micrometer 2.0 are coming in a upcoming PR
2022-03-07 14:14:26 -05:00
Glenn Renfro
6dc83b8abe Replaced increment table with sequnce for sqlserver
resolves #781
2022-01-19 13:37:16 -05:00
Glenn Renfro
c353d68396 Boot updated bom to use batch 5.x
Updated code to remove new deprecations
Updated code to fix compilation errors.
Updated code to add new bits for tests
2022-01-18 14:30:20 -05:00
Glenn Renfro
02b44227d4 Updated project to use Spring Boot 3.0
Resolves issues:
TASK-810
TASK-812
TASK-813
2022-01-13 20:11:55 -05:00
Henning Poettker
a95b420315 Use strict H2 query syntax for paging query provider
Simplify tests a bit

Updated to snapshot dependencies

Updated test and to set the version of h2 to us boot bom.
2022-01-10 14:04:47 -05:00
Glenn Renfro
3102aa0265 Update so that it can be natively compiled by Spring Native 0.11 2021-09-27 11:28:05 -04:00
Işık Erhan
8b4352095d Support multiple task listener beans of same type 2021-08-15 18:23:17 +03:00
Henning Pöttker
723fa1353a Mark TaskRepositoryInitializer as not lazy 2021-06-28 14:37:57 -04:00
Glenn Renfro
17415eaed5 Updating task execution id next val to use sequence for sqlserver
resolves TASK-782

Updated PR to resolve issue when no task tables exist

Updated PR based on review comments.
This does not include updated tests.
This resolves a problem where task would fail because the incrementer selection occured before the tables were created.

Added unit test for SqlServerSequenceIncrementer

updated based on code review
2021-05-28 18:09:35 -04:00
Michael Minella
704b8df2ad Added sort validation
This commit now validates that the value passed via a PageRequest to
sort the results by is a valid value.

Resolves #739

Fixed to allow for all letter cases
2020-11-09 10:30:03 -05:00
Glenn Renfro
b4ea1040de Task tags assigned to all metrics sent by the app
Ensure that Task's org.springframework.cloud.task.configurationorg.springframework.cloud.task.configuration.MetricsAutoConfiguration is configured Before org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration (that in turn is configured Before the CompositeMeterRegistryAutoConfiguration).
Resolves #691
2020-08-11 11:52:52 -04:00
Michael Minella
00b8acab55 Added support for specifying a TransactionManager
Before this commit, Spring Cloud Task did not correctly configure the
provided PlatformTransactionManager with the TaskRepository.  This
commit addressis this bug.

Resolves #652

Polished PR on Merge
2020-03-25 10:05:16 -04:00
Glenn Renfro
6b336a983c Resolves Task Lock issue with Oracle DB
In short the Oracle CHAR type is blank padded to the end of the field.  So we were not getting an exact match on queries when looking for the LOCK_KEY or CLIENT_ID
2020-01-30 09:17:15 -06:00
Glenn Renfro
7490f8b820 Initialize values with properties vs value
resolves #SCT-587
2019-07-03 13:24:06 -05:00
Michael Minella
0af72e31ac Polish 2019-07-03 13:09:18 -05:00