Dela via


CreateWorkerOptions Class

Definition

Options for creating a worker.

public class CreateWorkerOptions
type CreateWorkerOptions = class
Public Class CreateWorkerOptions
Inheritance
CreateWorkerOptions

Constructors

CreateWorkerOptions(String, Int32)

Initializes a new instance of CreateWorkerOptions.

Properties

AvailableForOffers

A flag indicating whether this worker is open to receive offers or not.

Capacity

The total capacity score this worker has to manage multiple concurrent jobs.

Channels

Collection of channel(s) this worker can handle and their impact on the workers capacity.

Labels

A set of key/value pairs that are identifying attributes used by the rules engines to make decisions. Values must be primitive values - number, string, boolean.

MaxConcurrentOffers

If this is set, the worker will only receive up to this many new offers at a time.

Queues

Collection of queue(s) that this worker can receive work from.

RequestConditions

The content to send as the request conditions of the request.

Tags

A set of non-identifying attributes attached to this worker. Values must be primitive values - number, string, boolean.

WorkerId

Id of a worker.

Applies to