diff --git a/src/index.ts b/src/index.ts index 0a80962..2114b8b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,6 +13,8 @@ const jobEventHandler = (event: TimeBasedEvent): void => { new JobBroker(jobEventHandler).consumeJob(event); }; +global.jobEventHandler = jobEventHandler; + /** * Register for asynchronous processing. * @param {JobFunction} callback call back funtion