Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
chore: comment starting agenda jobs to avoid errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwigoric committed Nov 23, 2023
1 parent dcf4e5b commit 00e79ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/schedules/agenda.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const graceful = async () => {
process.on('SIGTERM', graceful)
process.on('SIGINT', graceful)

async function start() {
await agenda.start()
for (const jobInfo of Object.values(jobs)) await agenda.every(jobInfo.every, jobInfo.name)
}
await start()
// async function start() {
// await agenda.start()
// for (const jobInfo of Object.values(jobs)) await agenda.every(jobInfo.every, jobInfo.name)
// }
// await start()

export default agenda

0 comments on commit 00e79ec

Please sign in to comment.