| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <[email protected]> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.DataPipeline.ReportTaskProgress
Description
Task runners call ReportTaskProgress when assigned a task to acknowledge that it has the task. If the web service does not receive this acknowledgement within 2 minutes, it assigns the task in a subsequent PollForTask call. After this initial acknowledgement, the task runner only needs to report progress every 15 minutes to maintain its ownership of the task. You can change this reporting time from 15 minutes by specifying a reportProgressTimeout field in your pipeline.
If a task runner does not report its status after 5 minutes, AWS Data Pipeline assumes that the task runner is unable to process the task and reassigns the task in a subsequent response to PollForTask . Task runners should call ReportTaskProgress every 60 seconds.
Synopsis
- reportTaskProgress :: Text -> ReportTaskProgress
- data ReportTaskProgress
- rtpFields :: Lens' ReportTaskProgress [Field]
- rtpTaskId :: Lens' ReportTaskProgress Text
- reportTaskProgressResponse :: Int -> Bool -> ReportTaskProgressResponse
- data ReportTaskProgressResponse
- rtprsResponseStatus :: Lens' ReportTaskProgressResponse Int
- rtprsCanceled :: Lens' ReportTaskProgressResponse Bool
Creating a Request
Arguments
| :: Text | |
| -> ReportTaskProgress |
Creates a value of ReportTaskProgress with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ReportTaskProgress Source #
Contains the parameters for ReportTaskProgress.
See: reportTaskProgress smart constructor.
Instances
Request Lenses
rtpFields :: Lens' ReportTaskProgress [Field] Source #
Key-value pairs that define the properties of the ReportTaskProgressInput object.
rtpTaskId :: Lens' ReportTaskProgress Text Source #
The ID of the task assigned to the task runner. This value is provided in the response for PollForTask .
Destructuring the Response
reportTaskProgressResponse Source #
Arguments
| :: Int | |
| -> Bool | |
| -> ReportTaskProgressResponse |
Creates a value of ReportTaskProgressResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rtprsResponseStatus- -- | The response status code.rtprsCanceled- If true, the calling task runner should cancel processing of the task. The task runner does not need to callSetTaskStatusfor canceled tasks.
data ReportTaskProgressResponse Source #
Contains the output of ReportTaskProgress.
See: reportTaskProgressResponse smart constructor.
Instances
Response Lenses
rtprsResponseStatus :: Lens' ReportTaskProgressResponse Int Source #
- - | The response status code.
rtprsCanceled :: Lens' ReportTaskProgressResponse Bool Source #
If true, the calling task runner should cancel processing of the task. The task runner does not need to call SetTaskStatus for canceled tasks.