Skip to content

Commit

Permalink
events dont exist :)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanwarujjaval committed Jan 14, 2025
1 parent bdf6252 commit d1eb6a5
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions jobServer/jobRunner/JobRunnerPulseImpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,6 @@ class JobRunnerPulseImpl extends IJobRunner {
...config,
mongo: this.db,
});

// Monitor for progress
this.#pulseRunner.on('touch', (job) => {
console.debug(`PULSE_EVENT_LISTENER: Lock extended for job ${job?.attrs?.name}`);
});

// Monitor for failures
// this.#pulseRunner.on('fail', (err, job) => {
// console.error(`PULSE_EVENT_LISTENER: Job ${job?.attrs?.name} failed:`, err);
// });

// Monitor for stalled jobs
this.#pulseRunner.on('stalled', (job) => {
console.warn(`PULSE_EVENT_LISTENER: Job ${job?.attrs?.name} has stalled`);
});
}

/**
Expand Down

0 comments on commit d1eb6a5

Please sign in to comment.