From e1a26b036b9245ce54b2a5074c9db76d47e21590 Mon Sep 17 00:00:00 2001 From: Manuel Astudillo Date: Mon, 7 Oct 2024 14:11:58 +0000 Subject: [PATCH] GITBOOK-206: change request with no subject merged in GitBook --- docs/gitbook/guide/job-schedulers/manage-job-schedulers.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/gitbook/guide/job-schedulers/manage-job-schedulers.md b/docs/gitbook/guide/job-schedulers/manage-job-schedulers.md index 0347772ec6..4531a20173 100644 --- a/docs/gitbook/guide/job-schedulers/manage-job-schedulers.md +++ b/docs/gitbook/guide/job-schedulers/manage-job-schedulers.md @@ -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.