@lage-run/scheduler 0.4.0 → 0.4.2

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/CHANGELOG.json CHANGED
@@ -2,7 +2,43 @@
2
2
  "name": "@lage-run/scheduler",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 04 Oct 2022 03:38:40 GMT",
5
+ "date": "Wed, 05 Oct 2022 20:00:17 GMT",
6
+ "tag": "@lage-run/scheduler_v0.4.2",
7
+ "version": "0.4.2",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@lage-run/scheduler",
13
+ "comment": "Bump @lage-run/cache to v0.1.17",
14
+ "commit": "bf12b1a56058649ddcff473c2ffd66d46a9fa09f"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@lage-run/scheduler",
19
+ "comment": "Bump @lage-run/scheduler-types to v0.1.5",
20
+ "commit": "bf12b1a56058649ddcff473c2ffd66d46a9fa09f"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Tue, 04 Oct 2022 20:18:09 GMT",
27
+ "tag": "@lage-run/scheduler_v0.4.1",
28
+ "version": "0.4.1",
29
+ "comments": {
30
+ "patch": [
31
+ {
32
+ "author": "kchau@microsoft.com",
33
+ "package": "@lage-run/scheduler",
34
+ "commit": "b0ffb4f99190b790fdd62560d97c60cb155fa95a",
35
+ "comment": "Adds a nicer warning message for workers that isn't compatible"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Tue, 04 Oct 2022 03:38:54 GMT",
6
42
  "tag": "@lage-run/scheduler_v0.4.0",
7
43
  "version": "0.4.0",
8
44
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,29 @@
1
1
  # Change Log - @lage-run/scheduler
2
2
 
3
- This log was last generated on Tue, 04 Oct 2022 03:38:40 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 05 Oct 2022 20:00:17 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.4.2
8
+
9
+ Wed, 05 Oct 2022 20:00:17 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @lage-run/cache to v0.1.17
14
+ - Bump @lage-run/scheduler-types to v0.1.5
15
+
16
+ ## 0.4.1
17
+
18
+ Tue, 04 Oct 2022 20:18:09 GMT
19
+
20
+ ### Patches
21
+
22
+ - Adds a nicer warning message for workers that isn't compatible (kchau@microsoft.com)
23
+
7
24
  ## 0.4.0
8
25
 
9
- Tue, 04 Oct 2022 03:38:40 GMT
26
+ Tue, 04 Oct 2022 03:38:54 GMT
10
27
 
11
28
  ### Minor changes
12
29
 
@@ -46,6 +46,9 @@ class WorkerRunner {
46
46
  // eslint-disable-next-line @typescript-eslint/no-var-requires
47
47
  const scriptModule = require(scriptFile);
48
48
  const runFn = typeof scriptModule.default === "function" ? scriptModule.default : scriptModule;
49
+ if (typeof runFn !== "function") {
50
+ throw new Error("WorkerRunner: worker script must export a function; you likely need to use `module.exports = function() {...}`");
51
+ }
49
52
  await runFn({ target, abortSignal });
50
53
  }
51
54
  }
@@ -1 +1 @@
1
- {"version":3,"file":"WorkerRunner.js","sourceRoot":"","sources":["../../src/runners/WorkerRunner.ts"],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,YAAY;IAGvB,KAAK,CAAC,GAAG,CAAC,MAAc,EAAE,WAAyB;;QACjD,IAAI,CAAC,CAAA,MAAA,MAAM,CAAC,OAAO,0CAAE,MAAM,CAAA,EAAE;YAC3B,MAAM,IAAI,KAAK,CAAC,mGAAmG,CAAC,CAAC;SACtH;QAED,MAAM,UAAU,GAAG,MAAA,MAAA,MAAM,CAAC,OAAO,0CAAE,MAAM,mCAAI,MAAA,MAAM,CAAC,OAAO,0CAAE,MAAM,CAAC;QAEpE,8DAA8D;QAC9D,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,OAAO,YAAY,CAAC,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC;QAE/F,MAAM,KAAK,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;IACvC,CAAC;;AAfH,oCAgBC;AAfQ,gCAAmB,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"WorkerRunner.js","sourceRoot":"","sources":["../../src/runners/WorkerRunner.ts"],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,YAAY;IAGvB,KAAK,CAAC,GAAG,CAAC,MAAc,EAAE,WAAyB;;QACjD,IAAI,CAAC,CAAA,MAAA,MAAM,CAAC,OAAO,0CAAE,MAAM,CAAA,EAAE;YAC3B,MAAM,IAAI,KAAK,CAAC,mGAAmG,CAAC,CAAC;SACtH;QAED,MAAM,UAAU,GAAG,MAAA,MAAA,MAAM,CAAC,OAAO,0CAAE,MAAM,mCAAI,MAAA,MAAM,CAAC,OAAO,0CAAE,MAAM,CAAC;QAEpE,8DAA8D;QAC9D,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;QACzC,MAAM,KAAK,GAAG,OAAO,YAAY,CAAC,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC;QAE/F,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE;YAC/B,MAAM,IAAI,KAAK,CAAC,gHAAgH,CAAC,CAAC;SACnI;QAED,MAAM,KAAK,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;IACvC,CAAC;;AAnBH,oCAoBC;AAnBQ,gCAAmB,GAAG,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/scheduler",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Scheduler for Lage",
5
5
  "repository": {
6
6
  "url": "https://github.com/microsoft/lage"
@@ -17,7 +17,7 @@
17
17
  "dependencies": {
18
18
  "@lage-run/target-graph": "^0.4.2",
19
19
  "@lage-run/logger": "^1.2.0",
20
- "@lage-run/cache": "^0.1.16",
20
+ "@lage-run/cache": "^0.1.17",
21
21
  "@lage-run/worker-threads-pool": "^0.1.6",
22
22
  "p-graph": "^1.1.1",
23
23
  "p-profiler": "^0.2.1",
@@ -25,7 +25,7 @@
25
25
  "workspace-tools": "^0.28.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@lage-run/scheduler-types": "^0.1.4",
28
+ "@lage-run/scheduler-types": "^0.1.5",
29
29
  "@lage-run/monorepo-fixture": "*",
30
30
  "@types/workerpool": "6.1.0",
31
31
  "monorepo-scripts": "*"