reference

Interface: GolemNetworkConfig

golem_network/golem_network.GolemNetworkConfig

Table of contents

Properties

Properties

image

Optional image: string

Image that will be uploaded to the provider and used to run the task. Defaults to golem/alpine:latest.

Defined in

src/golem_network/golem_network.ts:10


yagnaOptions

Optional yagnaOptions: YagnaOptions

Yagna options. See YagnaOptions for more information.

Defined in

src/golem_network/golem_network.ts:14


demand

Optional demand: Pick<PackageOptions, "minMemGib" | "minStorageGib" | "minCpuThreads" | "minCpuCores" | "capabilities">

Minimum hardware requirements for the provider. The available options are:

  • minMemGib - minimum required RAM in GiB
  • minStorageGib - minimum required storage in GiB
  • minCpuThreads - minimum required CPU threads
  • minCpuCores - minimum required CPU cores
  • capabilities - required provider capabilities

Defined in

src/golem_network/golem_network.ts:23


enableLogging

Optional enableLogging: boolean

If you want to see logs from the Golem node set this to true. Defaults to false.

Defined in

src/golem_network/golem_network.ts:27


beforeEachJob

Optional beforeEachJob: Worker<unknown, unknown>

Function that will be run before each job. You can use it to set up the environment for your job. For example, you can upload a file to the provider.

Defined in

src/golem_network/golem_network.ts:31


jobStorage

Optional jobStorage: JobStorage

Job storage. By default Golem Network uses a simple in-memory storage for job statuses and results. In a real application you should use some persistent storage (e.g. a database). See JobStorage for more information.

Defined in

src/golem_network/golem_network.ts:35