Skip to content

Commit

Permalink
GITBOOK-206: change request with no subject merged in GitBook
Browse files Browse the repository at this point in the history
  • Loading branch information
manast authored and gitbook-bot committed Oct 7, 2024
1 parent 7321e25 commit e1a26b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/gitbook/guide/job-schedulers/manage-job-schedulers.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ The removeJobScheduler method is designed to delete a specific job scheduler fro
// Remove a job scheduler with ID 'scheduler-123'
const result = await queue.removeJobScheduler('scheduler-123');
console.log(
result ? 'Scheduler removed successfully' : 'Failed to remove scheduler',
result ? 'Scheduler removed successfully' : 'Missing Job Scheduler',
);
```

The method will return true if there was a Job Scheduler to remove with the given ID, or false if there wasn't any.

#### Get Job Schedulers

The getJobSchedulers method retrieves a list of all configured job schedulers within a specified range. This is invaluable for monitoring and managing multiple job schedulers, especially in systems where jobs are dynamically scheduled and require frequent reviews or adjustments.
Expand Down

0 comments on commit e1a26b0

Please sign in to comment.