Skip to content

Commit

Permalink
fix: Dockerfile as there are deps needed for building external jobs a…
Browse files Browse the repository at this point in the history
…nd ts config files needed
  • Loading branch information
Arun-KumarH committed Mar 14, 2024
1 parent 8efcc97 commit 72a3a9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/schedulingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>();
this.cfg = cfg;
Expand Down

0 comments on commit 72a3a9d

Please sign in to comment.