This resource exposes endpoints to support operations at the tasks scope. The initial implementation includes the ability to list all the tasks for a particular job. This is a sub-resource of the Jobs Resource ยป and is not intended to be used independently.
Responses of individual endpoints will vary in accordance with their functionality and scope. However, the error messages of all of the tasks resource end points will be of the following form.
Error Message
Every error response will have the following structure:
{% highlight json %} { “message”: “Unrecognized status parameter: null” } {% endhighlight %} message is the only field in the response and contains a description of the problem.
Lists the complete details about all the tasks for a particular job
######Request GET /v1/jobs/{jobName}/{jobId}/tasks
######Response Status: 200 OK
{% highlight json %} [ { “preferredHost” : “samza-preferredHost”, “taskName” : “Samza task”, “containerId” : “0”, “partitions” : [{ “system” : “kafka”, “stream” : “topic-name”, “partitionId” : “0” }] } ] {% endhighlight %}
######Response codes
###Design ###Abstractions There are two primary abstractions that are required by the TasksResource that users can implement to handle any details specific to their environment.
The TasksResource properties should be specified in the same file as the Samza REST configuration.