Skip to main content

Schedule API Reference (Legacy)

Schedule API Reference (Legacy)

warning

These APIs are legacy and deprecated. Please use the current APIs instead.

Schedule CLI

anyscale schedule create Deprecated

Deprecated

anyscale schedule create has been deprecated. and will be removed on 2025-10-01. Please use anyscale schedule apply instead.

Usage

anyscale schedule create [OPTIONS] SCHEDULE_CONFIG_FILE

[DEPRECATED - use 'apply' instead] Create a schedule.

Options

  • --name/-n: Name of the schedule.
  • --description: Description of schedule.

anyscale schedule update Deprecated

Deprecated

anyscale schedule update has been deprecated. and will be removed on 2025-10-01. Please use anyscale schedule apply instead.

Usage

anyscale schedule update [OPTIONS] SCHEDULE_CONFIG_FILE

[DEPRECATED - use 'apply' instead] Update a schedule.

Options

  • --name/-n: Name of the schedule.
  • --description: Description of schedule.

Schedule SDK

The AnyscaleSDK class must be constructed in order to make calls to the SDK. This class allows you to create an authenticated client in which to use the SDK.

ParamTypeDescription
auth_tokenOptional StringAuthentication token used to verify you have permissions to access Anyscale. If not provided, permissions default to the credentials set for your current user. Credentials can be set by following the instructions on this page: https://console.anyscale.com/credentials

Example

from anyscale import AnyscaleSDK

sdk = AnyscaleSDK()

create_or_update_schedule

Create or update a Schedule

Parameters

NameTypeDescriptionNotes
create_scheduleCreateSchedule

Returns ScheduleapimodelResponse

get_schedule

Get Schedules

Parameters

NameTypeDescriptionNotes
schedule_idstrDefaults to null

Returns ScheduleapimodelResponse

pause_schedule

Pause a Schedule

Parameters

NameTypeDescriptionNotes
schedule_idstrDefaults to null
pause_schedulePauseSchedule

Returns ScheduleapimodelResponse

run_schedule

Run a Schedule manually

Parameters

NameTypeDescriptionNotes
schedule_idstrDefaults to null

Returns ProductionjobResponse

list_schedules

List Schedules

Parameters

NameTypeDescriptionNotes
project_idoptional strproject_id to filter byDefaults to null
nameoptional strname to filter byDefaults to null
creator_idoptional strfilter by creator idDefaults to null

Returns ScheduleapimodelListResponse