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>
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
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
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
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
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
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
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
- New dependencies
- micrometer-core
- java-cfenv - required by the CF tags configuration.
- Add TaskMetrics configuration that installs two Meters (Timer and LongTaskTimer) that produce the following time-series:
- spring.cloud.task - shows task duration (updated only after the task has completed).
- spring.cloud.task.active - provides run time information about the non-completed tasks.
Both meters are started at TaskExecutionListener#onTaskStartup() and ended at onTaskEnd() or onTaskFailure().
- Add common Task tags assigned to all time-series produced by the Task (not only the s.c.task and s.c.task.active). This allows to analyze CPU, Memory and other measurements grouped by task/execution ids.
- Add Cloud Found tags - Activated only for CF target platform.
Resolves#608
Updated to spring-cloud-build 2.2.0.BUILD-SNAPSHOT
Updated Tests to support the changes in the latest H2 database
Must use "-ifNotExists", when using the H2 TCP Server
- Deployer core/local uses 2.0.0.BUILD-SNAPSHOT
- Use pring-cloud-deployer-dependencies bom
- Remove ResourceLoadingAutoConfiguration as that is now in
deployer itself with a way to configure loaders.
- spring-cloud-task-core now depends on spring-cloud-deployer-autoconfigure.
- Rest of deployer modules like support/maven are still defined in deps
as those are optional in spring-cloud-deployer-autoconfigure.
- Make exit code nullable and only update of execution status can make it a valid integer
- Update JDBC create/start task execution queries to have exitCode as `null` values
- Update tests to validate/verify the appropirate exit code values for create/start/complete task executions
On merge had to add a pause to the TaskLauncherSinkTests to wait for the task to complete successfully Before we assumed that 0 was a satisfactory result meaning it was either running or completed. Now with the null being returned it could be zero or null. So we have to wait for the task to complete.