Something went wrong. Try again.
A comprehensive digital solution dedicated to bridging the gap between those offering services and those seeking them, providing a centrali… gigwork.co.in
Something went wrong. Try again.
123456789101112131415161718192021
export async function handleCron(cronTime: string) { switch (cronTime) { case '0 0 * * *': // Midnight console.log('Running midnight cron tasks...'); // Call your midnight services here break; case '0 * * * *': // Hourly console.log('Running hourly cron tasks...'); // Call your hourly services here break; case '* * * * *': console.log('Running every minute cron tasks...'); // Call your every minute services here break; default: console.log(`No tasks configured for cron time: ${cronTime}`); } console.log('Cron tasks completed.');}