stack

Home > @infiniteobjects/render-worker > Worker

Worker class

A worker that listens for new events, this is most likely part of an app

Signature:

export declare class Worker 

Constructors

Constructor Modifiers Description
(constructor)(conf)   Constructs a new instance of the Worker class

Properties

Property Modifiers Type Description
jobHandler readonly RenderJobHandler A job handler instance
log readonly LoggerInstance A logger instance
start   () => void Starts listening for events
stop   () => void Stops listening for events
type readonly RenderJobType The type of job this worker takes
version readonly string Worker version

Methods

Method Modifiers Description
init()   Initializes the worker
initSentry(dsn)   Initializes Sentry on the app
printConfig()   Prints the configuration