Browse Source

chore: remove logs for job started/completed (#8682)

pull/8684/head
Mert E 6 months ago committed by GitHub
parent
commit
393b7e132c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      packages/nocodb/src/modules/jobs/redis/jobs-event.service.ts

3
packages/nocodb/src/modules/jobs/redis/jobs-event.service.ts

@ -17,7 +17,6 @@ export class JobsEventService {
@OnQueueActive() @OnQueueActive()
onActive(job: Job) { onActive(job: Job) {
this.logger.log(`Processing job ${job.id} of type ${job.name}`);
this.eventEmitter.emit(JobEvents.STATUS, { this.eventEmitter.emit(JobEvents.STATUS, {
id: job.id.toString(), id: job.id.toString(),
status: JobStatus.ACTIVE, status: JobStatus.ACTIVE,
@ -26,7 +25,6 @@ export class JobsEventService {
@OnQueueFailed() @OnQueueFailed()
onFailed(job: Job, error: Error) { onFailed(job: Job, error: Error) {
this.logger.error(`Job ${job.id} failed with error ${error.message}`);
this.logger.error( this.logger.error(
`---- !! JOB FAILED !! ----\nid:${job.id}\nerror:${error.name} (${error.message})\n\nstack: ${error.stack}`, `---- !! JOB FAILED !! ----\nid:${job.id}\nerror:${error.name} (${error.message})\n\nstack: ${error.stack}`,
); );
@ -44,7 +42,6 @@ export class JobsEventService {
@OnQueueCompleted() @OnQueueCompleted()
onCompleted(job: Job, data: any) { onCompleted(job: Job, data: any) {
this.logger.log(`Job ${job.id} completed`);
this.eventEmitter.emit(JobEvents.STATUS, { this.eventEmitter.emit(JobEvents.STATUS, {
id: job.id.toString(), id: job.id.toString(),
status: JobStatus.COMPLETED, status: JobStatus.COMPLETED,

Loading…
Cancel
Save