import { addCronJob } from '../cronUtil';

export const releaseEmailBatches = ({now}) => {
}

addCronJob({
  name: "Hourly notification batch",
  schedule(parser) {
    return parser.cron('0 ? * * *');
  },
  job() {
    releaseEmailBatches({ now: new Date() });
  }
});

import { addCronJob } from '../cronUtil';

export const releaseEmailBatches = ({now}) => {
}

addCronJob({
  name: "Hourly notification batch",
  schedule(parser) {
    return parser.cron('0 ? * * *');
  },
  job() {
    console.log("Hourly notification batch"); //eslint-disable-line no-console
    releaseEmailBatches({ now: new Date() });
    console.log("Done with hourly notification batch"); //eslint-disable-line no-console
  }
});

--- 
+++ 
@@ -9,8 +9,6 @@
     return parser.cron('0 ? * * *');
   },
   job() {
-    console.log("Hourly notification batch"); //eslint-disable-line no-console
     releaseEmailBatches({ now: new Date() });
-    console.log("Done with hourly notification batch"); //eslint-disable-line no-console
   }
 });
Remove a duplicate console log for cronjob start/end
