Skip to main content
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()