From 72a3a9d79092bbee597745ee3a55a39e8d705e0f Mon Sep 17 00:00:00 2001 From: akumar Date: Thu, 14 Mar 2024 15:41:18 +0100 Subject: [PATCH] fix: Dockerfile as there are deps needed for building external jobs and ts config files needed --- Dockerfile | 2 +- src/schedulingService.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index dcd6d68..3962dcd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ USER node ARG APP_HOME=/home/node/srv WORKDIR $APP_HOME -COPY --chown=node:node ./cfg $APP_HOME/cfg +COPY --chown=node:node . $APP_HOME COPY --chown=node:node --from=build $APP_HOME/lib $APP_HOME/lib EXPOSE 50051 diff --git a/src/schedulingService.ts b/src/schedulingService.ts index 07c40ff..22fedd3 100644 --- a/src/schedulingService.ts +++ b/src/schedulingService.ts @@ -63,10 +63,10 @@ export class SchedulingService implements SchedulingServiceServiceImplementation const repeatJobIdCfg = cfg.get('redis'); repeatJobIdCfg.database = cfg.get('redis:db-indexes:db-repeatJobId'); this.repeatJobIdRedisClient = createClient(repeatJobIdCfg); - this.repeatJobIdRedisClient.on('error', (err) => logger.error('Redis client error in repeatable job store', err)); + this.repeatJobIdRedisClient.on('error', (err) => logger.error('Redis client error in repeatable job store', { code: err.code, message: err.message, stack: err.stack })); this.repeatJobIdRedisClient.connect().then((data) => { logger.info('Redis client connection for repeatable job store successful'); - }).catch(err => logger.error('Redis client error for repeatable job store', err)); + }).catch(err => logger.error('Redis client error for repeatable job store', { code: err.code, message: err.message, stack: err.stack })); this.canceledJobs = new Set(); this.cfg = cfg;