worker

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2018 License: MIT Imports: 2 Imported by: 129

Documentation

Overview

Package worker contains functions to manage lifecycle of a Cadence client side worker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableVerboseLogging

func EnableVerboseLogging(enable bool)

EnableVerboseLogging enable or disable verbose logging of internal Cadence library components. Most customers don't need this feature, unless advised by the Cadence team member. Also there is no guarantee that this API is not going to change.

Types

type Options

type Options = internal.WorkerOptions

Options is used to configure a worker instance.

type Worker

type Worker = internal.Worker

Worker represents objects that can be started and stopped.

func New

func New(
	service workflowserviceclient.Interface,
	domain string,
	taskList string,
	options Options,
) Worker

New creates an instance of worker for managing workflow and activity executions. service - thrift connection to the cadence server. domain - the name of the cadence domain. taskList - is the task list name you use to identify your client worker, also

identifies group of workflow and activity implementations that are hosted by a single worker process.

options - configure any worker specific options like logger, metrics, identity.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL