libZSservicesZSamazonka-datapipelineZSamazonka-datapipeline
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.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

Creating a Request

data ReportTaskProgress Source #

Contains the parameters for ReportTaskProgress.

See: newReportTaskProgress smart constructor.

Constructors

ReportTaskProgress' 

Fields

  • fields :: Maybe [Field]

    Key-value pairs that define the properties of the ReportTaskProgressInput object.

  • taskId :: Text

    The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.

Instances

Instances details
Eq ReportTaskProgress Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

Read ReportTaskProgress Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

Show ReportTaskProgress Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

Generic ReportTaskProgress Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

Associated Types

type Rep ReportTaskProgress :: Type -> Type #

NFData ReportTaskProgress Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

Methods

rnf :: ReportTaskProgress -> () #

Hashable ReportTaskProgress Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

ToJSON ReportTaskProgress Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

AWSRequest ReportTaskProgress Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

Associated Types

type AWSResponse ReportTaskProgress #

ToHeaders ReportTaskProgress Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

ToPath ReportTaskProgress Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

ToQuery ReportTaskProgress Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

type Rep ReportTaskProgress Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

type Rep ReportTaskProgress = D1 ('MetaData "ReportTaskProgress" "Amazonka.DataPipeline.ReportTaskProgress" "libZSservicesZSamazonka-datapipelineZSamazonka-datapipeline" 'False) (C1 ('MetaCons "ReportTaskProgress'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Field])) :*: S1 ('MetaSel ('Just "taskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse ReportTaskProgress Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

newReportTaskProgress Source #

Create a value of ReportTaskProgress with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:fields:ReportTaskProgress', reportTaskProgress_fields - Key-value pairs that define the properties of the ReportTaskProgressInput object.

$sel:taskId:ReportTaskProgress', reportTaskProgress_taskId - The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.

Request Lenses

reportTaskProgress_fields :: Lens' ReportTaskProgress (Maybe [Field]) Source #

Key-value pairs that define the properties of the ReportTaskProgressInput object.

reportTaskProgress_taskId :: 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

data ReportTaskProgressResponse Source #

Contains the output of ReportTaskProgress.

See: newReportTaskProgressResponse smart constructor.

Constructors

ReportTaskProgressResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • canceled :: Bool

    If true, the calling task runner should cancel processing of the task. The task runner does not need to call SetTaskStatus for canceled tasks.

Instances

Instances details
Eq ReportTaskProgressResponse Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

Read ReportTaskProgressResponse Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

Show ReportTaskProgressResponse Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

Generic ReportTaskProgressResponse Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

Associated Types

type Rep ReportTaskProgressResponse :: Type -> Type #

NFData ReportTaskProgressResponse Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

type Rep ReportTaskProgressResponse Source # 
Instance details

Defined in Amazonka.DataPipeline.ReportTaskProgress

type Rep ReportTaskProgressResponse = D1 ('MetaData "ReportTaskProgressResponse" "Amazonka.DataPipeline.ReportTaskProgress" "libZSservicesZSamazonka-datapipelineZSamazonka-datapipeline" 'False) (C1 ('MetaCons "ReportTaskProgressResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "canceled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))

newReportTaskProgressResponse Source #

Create a value of ReportTaskProgressResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:ReportTaskProgressResponse', reportTaskProgressResponse_httpStatus - The response's http status code.

$sel:canceled:ReportTaskProgressResponse', reportTaskProgressResponse_canceled - If true, the calling task runner should cancel processing of the task. The task runner does not need to call SetTaskStatus for canceled tasks.

Response Lenses

reportTaskProgressResponse_canceled :: 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.