どのようにしてsails-hook-scheduleでタスクをスケジュールするタイミングを指定できますか?私は彼らのドキュメントからこの基本的な例を得ました。sails.js-hook-scheddule - cronタイミング文字列を指定する方法
module.exports.schedule = {
sailsInContext : true, //If sails is not as global and you want to have it in your task
tasks : {
//Every monday at 1am
firstTask : {
cron : "0 1 * * 1",
task : function (context, sails)
{
console.log("cron ok");
},
context : {}
}
}
};
この行は何を意味していますか?
cron : "0 1 * * 1",
私が理解しているのは、スケジュールのタイミングを指定する方法です。私は朝の午前12時に特定の仕事をしたいと思っていました。誰もこれで私を助けることができますか?
ありがとう、gracias :) – Carmen