(directory, client, sessionID)
| 1581 | if (job.stopFile && await pathExists(path.resolve(directory, job.stopFile))) { |
| 1582 | state.jobs = (state.jobs || []).filter((candidate) => candidate.id !== job.id) |
| 1583 | await writeState(directory, sessionID, state) |
| 1584 | await notifyJob(directory, job, "stop_file") |
| 1585 | await toast(client, "Loop stopped by --stop-file: " + job.stopFile, "success") |
| 1586 | await reschedule() |
| 1587 | return |
| 1588 | } |
| 1589 | if (await untilReached(directory, job)) { |
no test coverage detected