22 lines
390 B
JavaScript
22 lines
390 B
JavaScript
class SchedulerService {
|
|
constructor() {
|
|
this.jobs = new Map();
|
|
this.isRunning = false;
|
|
}
|
|
|
|
start() {
|
|
this.isRunning = true;
|
|
console.log('๐ Scheduler service started');
|
|
}
|
|
|
|
stop() {
|
|
this.isRunning = false;
|
|
console.log('๐ Scheduler service stopped');
|
|
}
|
|
|
|
getJobStatus() {
|
|
return { scheduler: 'running' };
|
|
}
|
|
}
|
|
|
|
module.exports = SchedulerService; |