fastify-bree
v3.0.5
Published
[](https://github.com/climba03003/fastify-bree/actions/workflows/ci.yml) [
}
})
await fastify.bree.add({
name: 'cron' // which will use the file - `process.cwd()/jobs/cron.ts`
})
Options
options.customOptions
The options which will be directly passed to bree
.
import Fastifybree from 'fastify-bree'
fastify.register(Fastifybree, {
customOptions: {
}
})
See: bree
options.autoStart
This options will add a onReady
hooks to start all pre-registered jobs.
import Fastifybree from 'fastify-bree'
fastify.register(Fastifybree, {
autoStart: true
})
options.autoClose
This options will add a onClose
hooks to stop all running jobs.
import Fastifybree from 'fastify-bree'
fastify.register(Fastifybree, {
autoClose: true
})