Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex AI Studio
    • About Yandex AI Studio
    • Yandex Workflows
    • Quotas and limits
    • Terms and definitions
  • Compatibility with OpenAI
    • About Yandex Cloud ML SDK
      • Overview
        • Overview
        • Models domain
        • Assistants domain
        • Tools domain
        • Files domain
        • Threads domain
        • Runs domain
        • Search indexes domain
        • Search API domain
        • Datasets domain
        • Tuning domain
        • Batch domain
        • Chat domain
      • Authentication
      • Request retries
  • Access management
  • Pricing policy
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • class yandex_cloud_ml_sdk._batch.domain.Batch
  • class yandex_cloud_ml_sdk._types.batch.operation.BatchTaskOperation
  1. Yandex Cloud ML SDK
  2. SDK reference
  3. SDK
  4. Batch domain

Batch domain

Written by
Yandex Cloud
Updated at November 7, 2025
  • class yandex_cloud_ml_sdk._batch.domain.Batch
  • class yandex_cloud_ml_sdk._types.batch.operation.BatchTaskOperation

class yandexcloudmlsdk.batch.domain.Batchclass yandex_cloud_ml_sdk._batch.domain.Batch

Сlass for managing batch operations in Yandex Cloud ML SDK.

For usage examples see batch example.

get(task, *, timeout=60)

Get batch task operation by ID or by BatchTaskInfo object.

Parameters

  • task (str | BatchTaskInfo) – Either task ID string or BatchTaskInfo object.
  • timeout (float) – The timeout, or the maximum time to wait for the request to complete in seconds. Defaults to 60 seconds.

Return type

BatchTaskOperation

list_operations(*, page_size=Undefined, status=Undefined, timeout=60)

List batch task operations with optional filtering.

Parameters

  • page_size (int | Undefined) – Maximum number of tasks per page (optional).
  • status (BatchTaskStatus | str | int | Undefined) – Filter tasks by status (optional).
  • timeout (float) – The timeout, or the maximum time to wait for the request to complete in seconds. Defaults to 60 seconds.

Return type

Iterator[BatchTaskOperation]

list_info(*, page_size=Undefined, status=Undefined, timeout=60)

List batch task information with optional filtering.

Parameters

  • page_size (int | Undefined) – Maximum number of tasks per page (optional).
  • status (BatchTaskStatus | str | int | Undefined) – Filter tasks by status (optional).
  • timeout (float) – The timeout, or the maximum time to wait for the request to complete in seconds. Defaults to 60 seconds.

Return type

Iterator[BatchTaskInfo]

class yandexcloudmlsdk.types.batch.operation.BatchTaskOperationclass yandex_cloud_ml_sdk._types.batch.operation.BatchTaskOperation

delete(*, timeout=60)

Delete batch task from tasks history.

Parameters

timeout (float) – Timeout, or the maximum time to wait for the request to complete in seconds.

Return type

None

get_task_info(*, timeout=60)

Get detailed batch task info.

Parameters

timeout (float) – Timeout, or the maximum time to wait for the request to complete in seconds.

Returns

task info object with a lot of info fields.

Return type

BatchTaskInfo

cancel(*, timeout=60)

Parameters

timeout (float)

Return type

None

get_result(*, timeout=60)

Parameters

timeout (float)

Return type

AnyResultTypeT_co

get_status(*, timeout=60)

Parameters

timeout (float)

Return type

OperationStatusTypeT

property id: str

property task_id: str

wait(*, timeout=60, poll_timeout=None, poll_interval=None)

Parameters

  • timeout (float)
  • poll_timeout (int | None)
  • poll_interval (float | None)

Return type

AnyResultTypeT_co

Was the article helpful?

Previous
Tuning domain
Next
Chat domain
© 2025 Direct Cursus Technology L.L.C.