Home > @infiniteobjects/render-worker > Worker
A worker that listens for new events, this is most likely part of an app
Signature:
export declare class Worker
Constructor | Modifiers | Description |
---|---|---|
(constructor)(conf) | Constructs a new instance of the Worker class |
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 |
Method | Modifiers | Description |
---|---|---|
init() | Initializes the worker | |
initSentry(dsn) | Initializes Sentry on the app | |
printConfig() | Prints the configuration |