Skip to content

/AWS1/IF_SGJ=>COMPLETEROLLOUT()

About CompleteRollout

Marks a rollout as complete, indicating that no further turns will be appended to the trajectory. After calling this operation, the trajectory is sealed and eligible for reward submission via the UpdateReward operation.

Method Signature

METHODS /AWS1/IF_SGJ~COMPLETEROLLOUT
  IMPORTING
    !IV_JOBARN TYPE /AWS1/SGJJOBARN OPTIONAL
    !IV_TRAJECTORYID TYPE /AWS1/SGJTRAJECTORYID OPTIONAL
    !IV_STATUS TYPE /AWS1/SGJCOMPLETIONSTATUS OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/SGJSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgjcomplrolloutrsp
  RAISING
    /AWS1/CX_SGJACCESSDENIEDEX
    /AWS1/CX_SGJCONFLICTEXCEPTION
    /AWS1/CX_SGJINTSERVICEERROR
    /AWS1/CX_SGJRESOURCENOTFOUNDEX
    /AWS1/CX_SGJSERVICEQUOTAEXCDEX
    /AWS1/CX_SGJTHROTTLINGEX
    /AWS1/CX_SGJVLDTNEXCEPTION
    /AWS1/CX_SGJCLIENTEXC
    /AWS1/CX_SGJSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_jobarn TYPE /AWS1/SGJJOBARN /AWS1/SGJJOBARN

The job ARN.

iv_trajectoryid TYPE /AWS1/SGJTRAJECTORYID /AWS1/SGJTRAJECTORYID

The trajectory ID to mark as complete.

Optional arguments:

iv_status TYPE /AWS1/SGJCOMPLETIONSTATUS /AWS1/SGJCOMPLETIONSTATUS

The target status for the trajectory. Defaults to READY if not specified. Set to FAILED if the rollout encountered an error and the trajectory should not be used for processing.

iv_clienttoken TYPE /AWS1/SGJSTRING /AWS1/SGJSTRING

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

RETURNING

oo_output TYPE REF TO /aws1/cl_sgjcomplrolloutrsp /AWS1/CL_SGJCOMPLROLLOUTRSP

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->completerollout(
  iv_clienttoken = |string|
  iv_jobarn = |string|
  iv_status = |string|
  iv_trajectoryid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.

Invoke CompleteRollout

Marks a rollout as complete so the trajectory is sealed and eligible for reward submission.

DATA(lo_result) = lo_client->completerollout(
  iv_jobarn = |arn:aws:sagemaker:us-east-1:123456789012:job/AgentRFT/my-training-job|
  iv_status = |ready|
  iv_trajectoryid = |trajectory-001|
).