Add Application Name to TaskLaunchRequest for launched task

resolves #238
This commit is contained in:
Glenn Renfro
2016-11-02 09:26:00 -04:00
committed by Michael Minella
parent cc1f971f3e
commit 4a1a2c3c88
11 changed files with 139 additions and 51 deletions

View File

@@ -13,8 +13,18 @@ covers the integration options for Spring Cloud Task and Spring Cloud Stream.
Allows a user to launch tasks from a stream. This is done by creating a sink that
listens for a message that contains a `TaskLaunchRequest` as its payload. The
TaskLaunchRequest contains the maven coordinates to the Task that is to be executed. It
also has a Map that contains the environment variables that will be used by the Task.
TaskLaunchRequest contains:
* uri - to the task artifact that is to be executed.
* applicationName - the name that will be associated with the task. If no
applicationName is set the TaskLaunchRequest will generate a task name
comprised of the following: `Task-<UUID>`
* commandLineArguments - a list containing the command line arguments for the
task.
* environmentProperties - a map containing the environment variables to be used
by the task
* deploymentProperties - a map containing the properties that will be used by
the deployer to deploy the task.
NOTE: If the payload is of a different type then the sink will throw an exception.