@lage-run/scheduler 1.0.1 → 1.0.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 +22 -1
- package/CHANGELOG.md +11 -2
- package/lib/SimpleScheduler.d.ts +2 -0
- package/lib/workers/targetWorker.js +2 -4
- package/package.json +2 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,28 @@
|
|
|
2
2
|
"name": "@lage-run/scheduler",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 25 May 2023 15:45:38 GMT",
|
|
6
|
+
"tag": "@lage-run/scheduler_v1.0.2",
|
|
7
|
+
"version": "1.0.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "altinokd@microsoft.com",
|
|
12
|
+
"package": "@lage-run/scheduler",
|
|
13
|
+
"commit": "c2bf5ab7a31c05a11e9488a92d58ef0f74bc3e9d",
|
|
14
|
+
"comment": "Do not read config in targetWorker, instead pass CacheOptions as part of workerdata"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@lage-run/scheduler",
|
|
19
|
+
"comment": "Bump @lage-run/config to v0.3.0",
|
|
20
|
+
"commit": "c2bf5ab7a31c05a11e9488a92d58ef0f74bc3e9d"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Fri, 19 May 2023 22:10:20 GMT",
|
|
6
27
|
"tag": "@lage-run/scheduler_v1.0.1",
|
|
7
28
|
"version": "1.0.1",
|
|
8
29
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @lage-run/scheduler
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 25 May 2023 15:45:38 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.0.2
|
|
8
|
+
|
|
9
|
+
Thu, 25 May 2023 15:45:38 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Do not read config in targetWorker, instead pass CacheOptions as part of workerdata (altinokd@microsoft.com)
|
|
14
|
+
- Bump @lage-run/config to v0.3.0
|
|
15
|
+
|
|
7
16
|
## 1.0.1
|
|
8
17
|
|
|
9
|
-
Fri, 19 May 2023
|
|
18
|
+
Fri, 19 May 2023 22:10:20 GMT
|
|
10
19
|
|
|
11
20
|
### Patches
|
|
12
21
|
|
package/lib/SimpleScheduler.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import type { TargetScheduler, SchedulerRunSummary } from "@lage-run/scheduler-t
|
|
|
8
8
|
import type { Pool } from "@lage-run/worker-threads-pool";
|
|
9
9
|
import type { TargetRunnerPickerOptions } from "@lage-run/scheduler-types";
|
|
10
10
|
import type { TargetHasher } from "@lage-run/hasher";
|
|
11
|
+
import type { CacheOptions } from "@lage-run/cache";
|
|
11
12
|
export interface SimpleSchedulerOptions {
|
|
12
13
|
logger: Logger;
|
|
13
14
|
concurrency: number;
|
|
@@ -19,6 +20,7 @@ export interface SimpleSchedulerOptions {
|
|
|
19
20
|
root: string;
|
|
20
21
|
taskArgs: string[];
|
|
21
22
|
skipLocalCache?: boolean;
|
|
23
|
+
cacheOptions?: CacheOptions;
|
|
22
24
|
};
|
|
23
25
|
maxWorkersPerTask: Map<string, number>;
|
|
24
26
|
pool?: Pool;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
5
|
const _createCacheProvider = require("../cache/createCacheProvider.js");
|
|
6
|
-
const _config = require("@lage-run/config");
|
|
7
6
|
const _workerthreadspool = require("@lage-run/worker-threads-pool");
|
|
8
7
|
const _TargetRunnerPicker = require("../runners/TargetRunnerPicker.js");
|
|
9
8
|
const _worker_threads = require("worker_threads");
|
|
@@ -14,8 +13,7 @@ function _interop_require_default(obj) {
|
|
|
14
13
|
};
|
|
15
14
|
}
|
|
16
15
|
async function setup(options) {
|
|
17
|
-
const { runners , root } = options;
|
|
18
|
-
const config = await (0, _config.getConfig)(root);
|
|
16
|
+
const { runners , root , cacheOptions } = options;
|
|
19
17
|
const logger = (0, _logger.default)();
|
|
20
18
|
logger.addReporter({
|
|
21
19
|
log (entry) {
|
|
@@ -29,7 +27,7 @@ async function setup(options) {
|
|
|
29
27
|
const { cacheProvider } = await (0, _createCacheProvider.createCache)({
|
|
30
28
|
root,
|
|
31
29
|
logger,
|
|
32
|
-
cacheOptions
|
|
30
|
+
cacheOptions,
|
|
33
31
|
cliArgs: options.taskArgs,
|
|
34
32
|
skipLocalCache: options.skipLocalCache
|
|
35
33
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lage-run/scheduler",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Scheduler for Lage",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@lage-run/target-graph": "^0.8.6",
|
|
21
21
|
"@lage-run/logger": "^1.3.0",
|
|
22
22
|
"@lage-run/cache": "^1.1.1",
|
|
23
|
-
"@lage-run/config": "^0.
|
|
23
|
+
"@lage-run/config": "^0.3.0",
|
|
24
24
|
"@lage-run/hasher": "^1.0.0",
|
|
25
25
|
"@lage-run/worker-threads-pool": "^0.7.1"
|
|
26
26
|
},
|