Commit Graph

302 Commits

Author SHA1 Message Date
Spring Operator
e032e1bdfe URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* [ ] http://xslthl.sf.net (301) with 1 occurrences could not be migrated:
   ([https](https://xslthl.sf.net) result AnnotatedConnectException).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://asciidoctor.org with 1 occurrences migrated to:
  https://asciidoctor.org ([https](https://asciidoctor.org) result 200).
* [ ] http://sourceforge.net/projects/xslthl/ with 14 occurrences migrated to:
  https://sourceforge.net/projects/xslthl/ ([https](https://sourceforge.net/projects/xslthl/) result 200).
* [ ] http://www.w3.org/TR/CSS21/propidx.html with 1 occurrences migrated to:
  https://www.w3.org/TR/CSS21/propidx.html ([https](https://www.w3.org/TR/CSS21/propidx.html) result 200).
* [ ] http://repo.spring.io/libs-milestone-local with 2 occurrences migrated to:
  https://repo.spring.io/libs-milestone-local ([https](https://repo.spring.io/libs-milestone-local) result 302).
* [ ] http://repo.spring.io/libs-snapshot-local with 2 occurrences migrated to:
  https://repo.spring.io/libs-snapshot-local ([https](https://repo.spring.io/libs-snapshot-local) result 302).
* [ ] http://repo.spring.io/release with 1 occurrences migrated to:
  https://repo.spring.io/release ([https](https://repo.spring.io/release) result 302).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 36 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 18 occurrences
2019-03-26 16:50:39 -04:00
Spring Operator
8f46f8c3b0 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* [ ] http://xslthl.sf.net (301) with 4 occurrences could not be migrated:
   ([https](https://xslthl.sf.net) result AnnotatedConnectException).
* [ ] http://exslt.org/common (404) with 1 occurrences could not be migrated:
   ([https](https://exslt.org/common) result SSLHandshakeException).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://docs.spring.io/spring-boot/docs/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-boot/docs/ ([https](https://docs.spring.io/spring-boot/docs/) result 200).
* [ ] http://docs.spring.io/spring-boot/docs/current/reference/html/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-boot/docs/current/reference/html/ ([https](https://docs.spring.io/spring-boot/docs/current/reference/html/) result 200).
* [ ] http://docs.spring.io/spring-cloud-task/docs/ with 2 occurrences migrated to:
  https://docs.spring.io/spring-cloud-task/docs/ ([https](https://docs.spring.io/spring-cloud-task/docs/) result 200).
* [ ] http://docs.spring.io/spring-cloud-task/docs/current-SNAPSHOT/reference/html/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-cloud-task/docs/current-SNAPSHOT/reference/html/ ([https](https://docs.spring.io/spring-cloud-task/docs/current-SNAPSHOT/reference/html/) result 200).
* [ ] http://docs.spring.io/spring-security/site/docs/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-security/site/docs/ ([https](https://docs.spring.io/spring-security/site/docs/) result 200).
* [ ] http://docs.spring.io/spring/docs/ with 2 occurrences migrated to:
  https://docs.spring.io/spring/docs/ ([https](https://docs.spring.io/spring/docs/) result 200).
* [ ] http://github.com/ with 3 occurrences migrated to:
  https://github.com/ ([https](https://github.com/) result 200).
* [ ] http://maven.apache.org/xsd/maven-4.0.0.xsd with 1 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* [ ] http://stackoverflow.com with 1 occurrences migrated to:
  https://stackoverflow.com ([https](https://stackoverflow.com) result 200).
* [ ] http://stackoverflow.com/tags/spring-cloud-task with 1 occurrences migrated to:
  https://stackoverflow.com/tags/spring-cloud-task ([https](https://stackoverflow.com/tags/spring-cloud-task) result 200).
* [ ] http://start.spring.io/ with 1 occurrences migrated to:
  https://start.spring.io/ ([https](https://start.spring.io/) result 200).
* [ ] http://waffle.io/spring-cloud/spring-cloud-task with 2 occurrences migrated to:
  https://waffle.io/spring-cloud/spring-cloud-task ([https](https://waffle.io/spring-cloud/spring-cloud-task) result 200).
* [ ] http://ant.apache.org/manual with 1 occurrences migrated to:
  https://ant.apache.org/manual ([https](https://ant.apache.org/manual) result 301).
* [ ] http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* [ ] http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).
* [ ] http://docs.spring.io/spring-amqp/docs/current/api/org/springframework/amqp with 1 occurrences migrated to:
  https://docs.spring.io/spring-amqp/docs/current/api/org/springframework/amqp ([https](https://docs.spring.io/spring-amqp/docs/current/api/org/springframework/amqp) result 301).
* [ ] http://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data with 1 occurrences migrated to:
  https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data ([https](https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data) result 301).
* [ ] http://docs.spring.io/spring-data/jpa/docs/current/api/org/springframework/data/jpa with 1 occurrences migrated to:
  https://docs.spring.io/spring-data/jpa/docs/current/api/org/springframework/data/jpa ([https](https://docs.spring.io/spring-data/jpa/docs/current/api/org/springframework/data/jpa) result 301).
* [ ] http://docs.spring.io/spring-data/mongodb/docs/current/api/org/springframework/data/mongodb with 1 occurrences migrated to:
  https://docs.spring.io/spring-data/mongodb/docs/current/api/org/springframework/data/mongodb ([https](https://docs.spring.io/spring-data/mongodb/docs/current/api/org/springframework/data/mongodb) result 301).
* [ ] http://docs.spring.io/spring-data/rest/docs/current/api/org/springframework/data/rest with 1 occurrences migrated to:
  https://docs.spring.io/spring-data/rest/docs/current/api/org/springframework/data/rest ([https](https://docs.spring.io/spring-data/rest/docs/current/api/org/springframework/data/rest) result 301).
* [ ] http://raw.github.com/ with 1 occurrences migrated to:
  https://raw.github.com/ ([https](https://raw.github.com/) result 301).
* [ ] http://www.gradle.org/docs/current/userguide with 1 occurrences migrated to:
  https://www.gradle.org/docs/current/userguide ([https](https://www.gradle.org/docs/current/userguide) result 301).

# Ignored
These URLs were intentionally ignored.

* http://docbook.org/ns/docbook with 4 occurrences
* http://docbook.sourceforge.net/xmlns/l10n/1.0 with 2 occurrences
* http://maven.apache.org/POM/4.0.0 with 3 occurrences
* http://myURI with 1 occurrences
* http://oops with 1 occurrences
* http://www.w3.org/1999/XSL/Format with 2 occurrences
* http://www.w3.org/1999/XSL/Transform with 7 occurrences
* http://www.w3.org/1999/xlink with 1 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 1 occurrences
2019-03-26 04:01:34 -05:00
Spring Operator
fef2986417 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 196 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-21 13:30:23 -05:00
Spring Operator
deff0f36ea URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 18 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://www.apache.org/licenses/LICENSE-2.0 with 19 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 36 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 18 occurrences
2019-03-16 10:51:53 -05:00
Spring Buildmaster
83a7003656 [artifactory-release] Next development version 2019-02-21 19:54:44 +00:00
Spring Buildmaster
a8b61539c9 [artifactory-release] Release version 2.0.1.RELEASE 2019-02-21 19:54:41 +00:00
Glenn Renfro
c619dcf938 Updated SCB to 2.0.5.RELEASE 2019-02-21 14:36:18 -05:00
Glenn Renfro
6d87cc47f0 Treat MariaDB type as MySQL
resolves #514
2019-02-21 11:55:14 -06:00
Michael Minella
4877a92adb Remove Spring Batch Versions
Since Spring Cloud Task depends on Spring Boot, it should obtain the
version of dependencies managed by Spring Boot from Spring Boot.  This
commit removes the explict configuration of Spring Batch's version in
the Spring Cloud Task pom and instead delegates that to Spring Boot.
2019-02-21 12:23:09 -05:00
Glenn Renfro
5dd06367ae Updated versions 2019-02-21 11:46:03 -05:00
Glenn Renfro
23d7ed0803 Updated so that the TaskJobLauncherCommandLineRunner matches JobLauncherCommandLineRunner
in Boot 2.0.7.

REMOVE the Spring boot dependencies.   They are here only until the 2.0.7.RELEASE is out.

resolves #470

Updated versions
2019-02-13 17:57:24 -05:00
wildloop
e8855ef10f bug-fix: throwable param's required for @FailedTask annotated methods
Lack of this parameter causes:
-  the exception with message: "o.s.c.t.listener.TaskLifecycleListener: taskExecution and throwable parameters are required for @FailedTask annotated methods :While handling this error: java.lang.IllegalStateException: Failed to execute ApplicationRunner" - please, take look at [this](https://github.com/spring-cloud/spring-cloud-task/blob/master/spring-cloud-task-core/src/main/java/org/springframework/cloud/task/listener/annotation/TaskListenerExecutor.java#L113)
- and, as a consequence, a lost lock on the task (record in the table `task_locks`)
2018-12-07 11:27:06 -05:00
Glenn Renfro
53eb0620e7 Updated javadoc to remove ContextRefreshedEvent
Updated it to discuss SmartLifecycle#start() as the agent that kicks off the task.

resolves #447
2018-11-02 14:57:01 -05:00
Ilayaperumal Gopinathan
cf3a0dce8c Exit code is nullable
- 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.
2018-10-31 15:40:46 -04:00
Glenn Renfro
219aa2741f TaskLifecycleListener triggers early, and possibly cyclical, bean initialisation
Replaced TaskListenerExecutorFactory with TaskListenerExecutorObjectProviderTests.  This delays the need to acquire a bean till it is needed vs at application event time.

resolves #448
2018-10-23 09:39:09 -04:00
David Turanski
cba26ed968 Implement getRunningTaskCount
Expose functionality via TaskExplorer

Polishing on merge
2018-09-05 08:43:55 -04:00
Glenn Renfro
1406fa986c Refer users to SCDF to launch tasks 2018-06-26 14:10:21 -04:00
Glenn Renfro
f8fd74e616 Added docs on deploying SCT apps to CF 2018-06-18 18:42:39 -04:00
Gunnar Hillert
de1ebfb351 gh-424 Add the ability to retrieve the last TaskExecution for Tasks
- Add the ability to retrieve the last TaskExecution to:
  - MapTaskExecutionDao
  - JdbcTaskExecutionDao
- Refactor `JdbcTaskExecutionDao` and use `NamedParameterJdbcTemplate` for all persistence store calls
- Add the following TaskExecution methods to TaskExplorer:
  - getLatestTaskExecutionsByTaskNames
  - getLatestTaskExecutionForTaskName
- Add Tests
- Ensure that code is JDK7 compatible due to backporting needs
- Ensure commit backports to 1.2.x

Polishing on tests during merge
2018-06-15 16:54:28 -04:00
Michael Minella
4c5ce965fd Incremented version to the next development version 2018-05-08 17:01:51 -05:00
Spring Buildmaster
81b54aadba [artifactory-release] Next development version 2018-05-03 20:43:48 +00:00
Michael Minella
af24db3f12 Reverted javadoc fix. 2018-05-03 15:27:44 -05:00
Michael Minella
50fce183ef Updated to latest version of the local deployer 2018-05-03 12:34:02 -05:00
Michael Minella
4d4e98345b Updated version prior to GA 2018-05-01 08:58:01 -05:00
Michael Minella
30f50dded9 Fixed integration tests 2018-05-01 08:07:07 -05:00
Michael Minella
ba5bc3908a Documentation fixes prior to GA release
This commit addresses two formatting issues with the documentation as
well as should fix the publishing of the javadocs.

Resolves #417
2018-04-30 12:02:11 -05:00
Michael Minella
f9924782cc Cleaned up dependencies across the project 2018-04-13 17:43:30 -05:00
Michael Minella
508aa84d83 Updated versions prior to release 2018-04-13 17:16:56 -05:00
Glenn Renfro
5672b326ed SimpleTaskConfiguration ignores proxy beans when validating datasources
If a user adds spring-cloud-starter-config to the dependencies it has to add a proxy for the datasource else the Hikari connection pool pukes.

resolves #407
2018-04-13 16:19:52 -05:00
Michael Minella
09ff552b8d Added a sample that illustrates using multiple DataSources
This PR adds a sample that illustrates the use of multiple DataSources
in a single Spring Cloud Task application.

Resolves #413

Updated based on code review
2018-04-13 16:44:14 -04:00
Michael Minella
486ef0dec3 Updated reactor versions in the batch sample to match what the latest CF Deployer uses 2018-04-13 13:11:12 -05:00
Glenn Renfro
b9d95df0ff Updated partition launch with new property
Fixes issue where we have to disable the deployer-local's use of SPRING_APPLICATION_JSON
resolves #403
2018-04-03 12:43:37 -05:00
Glenn Renfro
3d21077fe7 Update partition sample README docs
Replace individual environment datasource variables with SPRING_APPLICATION_JSON
resolves #401
2018-04-03 12:40:03 -05:00
Glenn Renfro
0915dc6dfe TaskRepositoryInitializer now uses TaskConfigurer to determine the datasource
resolves #405
2018-03-09 13:22:17 -05:00
Glenn Renfro
a2a9d598e7 Remove sections on Yarn and Mesos partition executions
resovles #400
2018-03-07 14:16:25 -05:00
Jay Bryant
5cd934eb97 Full editing pass
I corrected spelling and grammar and gave it a voice (flat, corporate) consistent with our other docs. I added a couple TODOs where I thought another sample would help.

Incorporated Glenn Renfro's comments

Glenn gave my work a thorough review (thanks, Glenn!). This commit incorporates his changes.

One more change

I missed one of Glenn's fixes (by forgetting to save one last time before the previous commit). I have corrected that oversight
2018-03-07 14:01:18 -05:00
Michael Minella
f3e4b96ffc Updated versions to support Spring Boot 2 2018-03-02 13:30:17 -06:00
Glenn Renfro
63dfe406f5 Updated Versions for Cloud Build and Stream
resolves #395
2018-02-26 17:26:29 -05:00
Roy Clarkson
860e514060 Update sample README to remove unnecessary contentType parameters
Resolves #393

Add back C/Rs
2018-02-22 18:01:08 -05:00
Michael Minella
f23b80a9c6 Polish 2018-02-13 13:47:03 -06:00
Glenn Renfro
dca5945f8f Updating dependencies
resolves #387
2018-02-13 12:25:14 -06:00
Glenn Renfro
7843ba2edb Updated TaskLauncherSink to be able to use SCST 2.0
* Updated tests
 - to handle additional cases
 - removed `now` invalid tests
* removed logging payload from the TaskLauncher
* handles message instead TaskLaunchRequestPOJO

resolves #385
2018-02-13 12:19:11 -06:00
Michael Minella
71b74665a0 Polish 2018-02-13 11:49:56 -06:00
Glenn Renfro
01311e8be6 FactoryBean now sets the tablePrefix for taskBatchExecutionListener
resolves #353
2018-02-13 11:49:48 -06:00
Michael Minella
6426cfea7e Polish 2018-02-13 09:28:22 -06:00
Glenn Renfro
76309b89ff Removed code that was marked as deprecated.
Also updated test that tested deprecated code.

resolves #366
2018-02-13 09:28:09 -06:00
Michael Minella
1ae7930d09 Added ability to cofigure CommandLineRunner order
This commit adds the ability to configure the order for the
TaskJobLauncherCommandLineRunner.  It also provides minor polish on a
few other code review related items.
2018-02-12 17:03:48 -06:00
Glenn Renfro
cd4dbe6a93 Allows failed batch apps to set exit code of task app.
resolves #201
 Please enter the commit message for your changes. Lines starting

Cleanup Removed taskProperties from TaskBatchAutoConfiguration
2018-02-12 17:03:36 -06:00
Glenn Renfro
b6f6d68385 Deprecate the use of spring.cloud.task.batch.listener.enable
replace it with spring.cloud.task.batch.listener.enabled

resolves #379
2018-02-12 13:41:59 -06:00
kangtaku
16efd486d8 Correct typo of a word and a bracket.
Removed a unneeded empty row.

Removed starting parenthesis and added Carriage return to end of file
2018-02-05 09:53:02 -05:00