A stop condition is a criteria that when met, will send a stop signal (setting the queue status to Inactive) which will stop an further jobs from being started however running jobs will continue to completion. There are three supported stop conditions:
- Depth limit - when a link is encountered that has a depth from the entrypoint url that exceeds the config.depthLimit value, a stop signal is sent.
- Empty queue - when there are no more jobs queued, a stop signal is sent.
- User defined - a callback function in the after hook that when called sends a stop signal