@ruiapp/rapid-core 0.1.32 → 0.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4981,12 +4981,14 @@ class CronJobPlugin {
4981
4981
  }
4982
4982
  async onApplicationReady(server, applicationConfig) {
4983
4983
  for (const job of this.#jobs) {
4984
- cron__namespace.CronJob.from({
4984
+ const jobInstance = cron__namespace.CronJob.from({
4985
4985
  cronTime: job.cronTime,
4986
4986
  onTick: async () => {
4987
+ server.getLogger().info(`Executing cron job '${job.code}'...`);
4987
4988
  await this.executeJob(server, job);
4988
4989
  },
4989
4990
  });
4991
+ jobInstance.start();
4990
4992
  }
4991
4993
  }
4992
4994
  getJobConfigurationByCode(code) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruiapp/rapid-core",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -76,9 +76,11 @@ class CronJobPlugin implements RapidPlugin {
76
76
  const jobInstance = cron.CronJob.from({
77
77
  cronTime: job.cronTime,
78
78
  onTick: async () => {
79
+ server.getLogger().info(`Executing cron job '${job.code}'...`);
79
80
  await this.executeJob(server, job);
80
81
  },
81
82
  });
83
+ jobInstance.start();
82
84
  }
83
85
  }
84
86