Skip to content

Commit

Permalink
Merge pull request #677 from openstad/feat/remove-action-cronjob
Browse files Browse the repository at this point in the history
feat: remove actions cronjob
  • Loading branch information
rudivanhierden authored Nov 6, 2024
2 parents a1ddc9d + 53650af commit 00bc00f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/api-server/src/cron/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ const db = require('../db');
// Run actions
//
module.exports = {
cronTime: '*/1 * * * *',
// Run it once
cronTime: '1 1 1 1 1',
//cronTime: '*/5 * * * *',
//cronTime: '*/10 * * * *',
runOnInit: false,
onTick: async () => {
try {
// Early return, actions are not created yet
return;
/*try {
await db.Action.run();
} catch (e) {
console.log('Error in actions crons: ', e)
}
}*/
}
};

0 comments on commit 00bc00f

Please sign in to comment.