SagemakerJobRuntimeService / Client / complete_rollout

complete_rollout

SagemakerJobRuntimeService.Client.complete_rollout(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.complete_rollout(
    JobArn='string',
    TrajectoryId='string',
    Status='ready'|'failed',
    ClientToken='string'
)
Parameters:
  • JobArn (string) –

    [REQUIRED]

    The job ARN.

  • TrajectoryId (string) –

    [REQUIRED]

    The trajectory ID to mark as complete.

  • Status (string) – 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.

  • ClientToken (string) –

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

    This field is autopopulated if not provided.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions