/// <summary> /// <para> Updates the AWS Data Pipeline service on the progress of the calling task runner. When the task runner is assigned a task, it should /// call ReportTaskProgress to acknowledge that it has the task within 2 minutes. If the web service does not recieve this acknowledgement /// within the 2 minute window, it will assign 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 <c>reportProgressTimeout</c> field in your pipeline. If a task runner does not report its status after 5 minutes, AWS Data /// Pipeline will assume that the task runner is unable to process the task and will reassign the task in a subsequent response to PollForTask. /// task runners should call ReportTaskProgress every 60 seconds. </para> /// </summary> /// /// <param name="reportTaskProgressRequest">Container for the necessary parameters to execute the ReportTaskProgress service method on /// AmazonDataPipeline.</param> /// /// <returns>The response from the ReportTaskProgress service method, as returned by AmazonDataPipeline.</returns> /// /// <exception cref="T:Amazon.DataPipeline.Model.PipelineNotFoundException" /> /// <exception cref="T:Amazon.DataPipeline.Model.InternalServiceErrorException" /> /// <exception cref="T:Amazon.DataPipeline.Model.InvalidRequestException" /> /// <exception cref="T:Amazon.DataPipeline.Model.TaskNotFoundException" /> /// <exception cref="T:Amazon.DataPipeline.Model.PipelineDeletedException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task <ReportTaskProgressResponse> ReportTaskProgressAsync(ReportTaskProgressRequest reportTaskProgressRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ReportTaskProgressRequestMarshaller(); var unmarshaller = ReportTaskProgressResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, ReportTaskProgressRequest, ReportTaskProgressResponse>(reportTaskProgressRequest, marshaller, unmarshaller, signer, cancellationToken)); }
internal ReportTaskProgressResponse ReportTaskProgress(ReportTaskProgressRequest request) { var marshaller = new ReportTaskProgressRequestMarshaller(); var unmarshaller = ReportTaskProgressResponseUnmarshaller.Instance; return(Invoke <ReportTaskProgressRequest, ReportTaskProgressResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the ReportTaskProgress operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ReportTaskProgress operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <ReportTaskProgressResponse> ReportTaskProgressAsync(ReportTaskProgressRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ReportTaskProgressRequestMarshaller(); var unmarshaller = ReportTaskProgressResponseUnmarshaller.Instance; return(InvokeAsync <ReportTaskProgressRequest, ReportTaskProgressResponse>(request, marshaller, unmarshaller, cancellationToken)); }
internal ReportTaskProgressResponse ReportTaskProgress(ReportTaskProgressRequest request) { var task = ReportTaskProgressAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }