* Remove a job and persist to job.json.
(id: string)
| 392 | }; |
| 393 | } |
| 394 | |
| 395 | /** |
| 396 | * Remove a job and persist to job.json. |
| 397 | */ |
| 398 | removeJob(id: string): { success: boolean; message: string } { |
| 399 | const job = this.jobs.get(id); |
| 400 | if (!job) { |
| 401 | return { success: false, message: `Job "${id}" not found.` }; |
| 402 | } |
| 403 | |
| 404 | this.removeFromMap(id); |
| 405 | this.persistJobs(); |
| 406 | |
| 407 | return { success: true, message: `Job "${job.config.name}" removed.` }; |
no test coverage detected