Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.vast.ai/llms.txt

Use this file to discover all available pages before exploring further.

This class provides a simple to use abstraction over the pyworker backend. All custom implementations of pyworker can be created by configuring a Worker object. The pyworker starts by calling Worker.run()

Import

from vastai import Worker

Constructor

Worker(config: WorkerConfig)
config
WorkerConfig
required
config

Methods

run_async

async run_async()

run

run()