@lage-run/scheduler 0.8.5 → 0.9.1

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,55 @@
2
2
  "name": "@lage-run/scheduler",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 15 Feb 2023 16:50:52 GMT",
5
+ "date": "Wed, 08 Mar 2023 00:05:07 GMT",
6
+ "tag": "@lage-run/scheduler_v0.9.1",
7
+ "version": "0.9.1",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@lage-run/scheduler",
13
+ "comment": "Bump @lage-run/target-graph to v0.7.0",
14
+ "commit": "e2eb2c00d1b23e2c65943e9c64134c14e04f985f"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@lage-run/scheduler",
19
+ "comment": "Bump @lage-run/cache to v0.4.0",
20
+ "commit": "e2eb2c00d1b23e2c65943e9c64134c14e04f985f"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@lage-run/scheduler",
25
+ "comment": "Bump @lage-run/scheduler-types to v0.3.2",
26
+ "commit": "e2eb2c00d1b23e2c65943e9c64134c14e04f985f"
27
+ }
28
+ ]
29
+ }
30
+ },
31
+ {
32
+ "date": "Tue, 21 Feb 2023 21:30:37 GMT",
33
+ "tag": "@lage-run/scheduler_v0.9.0",
34
+ "version": "0.9.0",
35
+ "comments": {
36
+ "minor": [
37
+ {
38
+ "author": "kchau@microsoft.com",
39
+ "package": "@lage-run/scheduler",
40
+ "commit": "d7a8a3fa2bcf434c59bea26d5964dd7235998ad2",
41
+ "comment": "cache directory to be centralized"
42
+ },
43
+ {
44
+ "author": "beachball",
45
+ "package": "@lage-run/scheduler",
46
+ "comment": "Bump @lage-run/cache to v0.3.0",
47
+ "commit": "d7a8a3fa2bcf434c59bea26d5964dd7235998ad2"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ {
53
+ "date": "Wed, 15 Feb 2023 16:51:15 GMT",
6
54
  "tag": "@lage-run/scheduler_v0.8.5",
7
55
  "version": "0.8.5",
8
56
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,31 @@
1
1
  # Change Log - @lage-run/scheduler
2
2
 
3
- This log was last generated on Wed, 15 Feb 2023 16:50:52 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 08 Mar 2023 00:05:07 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.9.1
8
+
9
+ Wed, 08 Mar 2023 00:05:07 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @lage-run/target-graph to v0.7.0
14
+ - Bump @lage-run/cache to v0.4.0
15
+ - Bump @lage-run/scheduler-types to v0.3.2
16
+
17
+ ## 0.9.0
18
+
19
+ Tue, 21 Feb 2023 21:30:37 GMT
20
+
21
+ ### Minor changes
22
+
23
+ - cache directory to be centralized (kchau@microsoft.com)
24
+ - Bump @lage-run/cache to v0.3.0
25
+
7
26
  ## 0.8.5
8
27
 
9
- Wed, 15 Feb 2023 16:50:52 GMT
28
+ Wed, 15 Feb 2023 16:51:15 GMT
10
29
 
11
30
  ### Patches
12
31
 
@@ -140,7 +140,7 @@ class WrappedTarget {
140
140
  target
141
141
  });
142
142
  this.onStart(0);
143
- const cachedOutputFile = (0, _getLageOutputCacheLocationJs.getLageOutputCacheLocation)(this.target, hash ?? "");
143
+ const cachedOutputFile = (0, _getLageOutputCacheLocationJs.getLageOutputCacheLocation)(this.options.root, hash ?? "");
144
144
  if (_fs.default.existsSync(cachedOutputFile)) {
145
145
  const cachedOutput = _fs.default.createReadStream(cachedOutputFile, "utf8");
146
146
  this.options.logger.verbose(">> Replaying cached output", {
@@ -166,7 +166,7 @@ class WrappedTarget {
166
166
  const result = await this.runInPool();
167
167
  if (cacheEnabled && hash) {
168
168
  await this.saveCache(hash);
169
- const outputLocation = (0, _getLageOutputCacheLocationJs.getLageOutputCacheLocation)(this.target, hash);
169
+ const outputLocation = (0, _getLageOutputCacheLocationJs.getLageOutputCacheLocation)(this.options.root, hash);
170
170
  const outputPath = _path.default.dirname(outputLocation);
171
171
  await (0, _promises.mkdir)(outputPath, {
172
172
  recursive: true
@@ -1,2 +1 @@
1
- import type { Target } from "@lage-run/target-graph";
2
- export declare function getLageOutputCacheLocation(target: Target, hash: string): string;
1
+ export declare function getLageOutputCacheLocation(root: string, hash: string): string;
@@ -6,13 +6,14 @@ Object.defineProperty(exports, "getLageOutputCacheLocation", {
6
6
  enumerable: true,
7
7
  get: ()=>getLageOutputCacheLocation
8
8
  });
9
+ const _cache = require("@lage-run/cache");
9
10
  const _path = /*#__PURE__*/ _interopRequireDefault(require("path"));
10
11
  function _interopRequireDefault(obj) {
11
12
  return obj && obj.__esModule ? obj : {
12
13
  default: obj
13
14
  };
14
15
  }
15
- function getLageOutputCacheLocation(target, hash) {
16
- const outputPath = _path.default.join(target.cwd, "node_modules/.cache/lage/output/");
17
- return _path.default.join(outputPath, hash + ".txt");
16
+ function getLageOutputCacheLocation(root, hash) {
17
+ const outputPath = (0, _cache.getLogsCacheDirectory)(root, hash);
18
+ return _path.default.join(outputPath, hash + ".log");
18
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/scheduler",
3
- "version": "0.8.5",
3
+ "version": "0.9.1",
4
4
  "description": "Scheduler for Lage",
5
5
  "repository": {
6
6
  "url": "https://github.com/microsoft/lage"
@@ -15,13 +15,13 @@
15
15
  "lint": "monorepo-scripts lint"
16
16
  },
17
17
  "dependencies": {
18
- "@lage-run/target-graph": "^0.6.2",
18
+ "@lage-run/target-graph": "^0.7.0",
19
19
  "@lage-run/logger": "^1.2.2",
20
- "@lage-run/cache": "^0.2.5",
20
+ "@lage-run/cache": "^0.4.0",
21
21
  "@lage-run/worker-threads-pool": "^0.5.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@lage-run/scheduler-types": "^0.3.1",
24
+ "@lage-run/scheduler-types": "^0.3.2",
25
25
  "monorepo-scripts": "*"
26
26
  },
27
27
  "publishConfig": {