There are two ways to schedule tasks on Amazon SageMaker:
- Using the Amazon SageMaker Console
- Using the AWS SDK for Python (Boto3)
Using the Amazon SageMaker Console
To schedule a task using the Amazon SageMaker console, go to the Amazon SageMaker console and choose the Scheduled Tasks tab on the left side of the screen. Then, click the Create task button.
In the Create task pane, you will need to specify the following information:
- The IAM role that will be used to run the task. This role must have permissions to access the Amazon SageMaker resources that will be used by the task.
- The Amazon SageMaker notebook instance or endpoint that will be used to run the task.
- The name of the task.
- The schedule for the task. This can be either a cron expression or a rate expression.
- The S3 bucket where the input data for the task will be located.
- The S3 bucket where the output data from the task will be located.
Using the AWS SDK for Python (Boto3)
To schedule a task using the AWS SDK for Python (Boto3), you will