@arkstack/scheduler 0.18.2 → 0.18.3

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.
@@ -17,10 +17,10 @@ var ScheduleWorkCommand = class extends Command {
17
17
  }
18
18
  this.info("Schedule worker started; evaluating tasks every minute. Press Ctrl+C to stop.");
19
19
  for (;;) {
20
+ await new Promise((resolve) => setTimeout(resolve, 6e4 - Date.now() % 6e4 + 1e3));
20
21
  const results = await runDueEvents(/* @__PURE__ */ new Date());
21
22
  for (const result of results) if (result.ran) this.success(`Ran: ${result.description}`);
22
23
  else if (result.error) this.error(`Failed: ${result.description}`);
23
- await new Promise((resolve) => setTimeout(resolve, 6e4 - Date.now() % 6e4 + 1e3));
24
24
  }
25
25
  }
26
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/scheduler",
3
- "version": "0.18.2",
3
+ "version": "0.18.3",
4
4
  "type": "module",
5
5
  "description": "Task scheduling for Arkstack: fluent frequencies, cron, overlap/one-server locks, hooks, and schedule:run/work/list commands.",
6
6
  "homepage": "https://arkstack.toneflix.net/guide/scheduling",
@@ -33,13 +33,13 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "croner": "^9.0.0",
36
- "@arkstack/common": "^0.18.2"
36
+ "@arkstack/common": "^0.18.3"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@h3ravel/musket": "^2.2.13",
40
- "@arkstack/cache": "^0.18.2",
41
- "@arkstack/contract": "^0.18.2",
42
- "@arkstack/jobs": "^0.18.2"
40
+ "@arkstack/cache": "^0.18.3",
41
+ "@arkstack/contract": "^0.18.3",
42
+ "@arkstack/jobs": "^0.18.3"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "@arkstack/cache": {