29 lines
708 B
JavaScript
Raw Normal View History

2019-04-05 16:11:09 +02:00
'use strict';
/**
* Cron config that gives you an opportunity
* to run scheduled jobs.
*
* The cron format consists of:
* [MINUTE] [HOUR] [DAY OF MONTH] [MONTH OF YEAR] [DAY OF WEEK] [YEAR (optional)]
2021-09-23 09:14:09 +02:00
*
* It uses https://github.com/node-schedule/node-schedule under the hood
2019-04-05 16:11:09 +02:00
*/
module.exports = {
/**
* Simple example.
* Every monday at 1am.
*/
// '0 0 1 * * 1': async function({ strapi }) {
2021-09-23 09:14:09 +02:00
// // Add your own logic here (e.g. send a queue of email, create a database backup, etc.).
2019-04-05 16:11:09 +02:00
// }
// 'myJob': {
// task: ({ strapi }) => { /* Add your own logic here */ },
// options: {
// rule: '* * * * * *',
// end: new Date().getTime() + 6000,
// }
// }
2019-04-05 16:11:09 +02:00
};