check cronJOBS
This commit is contained in:
@@ -15,7 +15,7 @@ module.exports = fp(async function (fastify, opts) {
|
|||||||
fastify.register(fastifyCron, {
|
fastify.register(fastifyCron, {
|
||||||
jobs: [
|
jobs: [
|
||||||
{
|
{
|
||||||
cronTime: '0 0 0 * * *', ///'*/5 * * * * *'
|
cronTime: '0 0 * * *', ///'*/5 * * * * *'
|
||||||
onTick: async () => {
|
onTick: async () => {
|
||||||
fastify.log.info('⏰ Cron Job ran at ' + new Date().toISOString())
|
fastify.log.info('⏰ Cron Job ran at ' + new Date().toISOString())
|
||||||
try {
|
try {
|
||||||
@@ -53,7 +53,7 @@ module.exports = fp(async function (fastify, opts) {
|
|||||||
} },
|
} },
|
||||||
start: true
|
start: true
|
||||||
},{
|
},{
|
||||||
cronTime: '0 0 0 * * *', ///'*/5 * * * * *'
|
cronTime: '0 0 * * *', ///'*/5 * * * * *'
|
||||||
onTick: async () => {
|
onTick: async () => {
|
||||||
fastify.log.info('⏰ Cron Job ran at hamrah ' + new Date().toISOString())
|
fastify.log.info('⏰ Cron Job ran at hamrah ' + new Date().toISOString())
|
||||||
try {
|
try {
|
||||||
Reference in New Issue
Block a user