cron: add @service which is probably clearer than @reboot in app context

This commit is contained in:
Girish Ramakrishnan
2022-05-20 10:57:44 -07:00
parent 17910584ca
commit 9fcd6f9c0a
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ async function createJobs(app, schedulerConfig) {
debug(`createJobs: ${taskName} (${app.fqdn}) will run in container ${containerName}`);
let cronTime;
if (schedule === '@reboot') {
if (schedule === '@service') {
cronTime = new Date(Date.now() + 2*1000); // 2 seconds from now
} else {
// random is so that all crons start at once to decrease memory pressure