@constructive-io/knative-job-service 2.27.2 → 2.27.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.
- package/esm/index.js +2 -10
- package/index.js +1 -9
- package/package.json +15 -15
package/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import Worker from '@constructive-io/knative-job-worker';
|
|
|
3
3
|
import Scheduler from '@constructive-io/job-scheduler';
|
|
4
4
|
import poolManager from '@constructive-io/job-pg';
|
|
5
5
|
import { getJobPgConfig, getJobSchema, getJobSupported, getJobsCallbackPort, getSchedulerHostname, getWorkerHostname } from '@constructive-io/job-utils';
|
|
6
|
-
import { parseEnvBoolean } from '@pgpmjs/env';
|
|
6
|
+
import { parseEnvBoolean, parseEnvList } from '@pgpmjs/env';
|
|
7
7
|
import { Logger } from '@pgpmjs/logger';
|
|
8
8
|
import retry from 'async-retry';
|
|
9
9
|
import { Client } from 'pg';
|
|
@@ -208,14 +208,6 @@ export class KnativeJobsSvc {
|
|
|
208
208
|
this.scheduler.listen();
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
const parseList = (value) => {
|
|
212
|
-
if (!value)
|
|
213
|
-
return [];
|
|
214
|
-
return value
|
|
215
|
-
.split(',')
|
|
216
|
-
.map((item) => item.trim())
|
|
217
|
-
.filter(Boolean);
|
|
218
|
-
};
|
|
219
211
|
const parsePortMap = (value) => {
|
|
220
212
|
if (!value)
|
|
221
213
|
return {};
|
|
@@ -255,7 +247,7 @@ const buildFunctionsOptionsFromEnv = () => {
|
|
|
255
247
|
if (normalized === 'all' || normalized === '*') {
|
|
256
248
|
return { enabled: true };
|
|
257
249
|
}
|
|
258
|
-
const names =
|
|
250
|
+
const names = (parseEnvList(rawFunctions) ?? []);
|
|
259
251
|
if (!names.length)
|
|
260
252
|
return undefined;
|
|
261
253
|
const services = names.map((name) => ({
|
package/index.js
CHANGED
|
@@ -229,14 +229,6 @@ class KnativeJobsSvc {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
exports.KnativeJobsSvc = KnativeJobsSvc;
|
|
232
|
-
const parseList = (value) => {
|
|
233
|
-
if (!value)
|
|
234
|
-
return [];
|
|
235
|
-
return value
|
|
236
|
-
.split(',')
|
|
237
|
-
.map((item) => item.trim())
|
|
238
|
-
.filter(Boolean);
|
|
239
|
-
};
|
|
240
232
|
const parsePortMap = (value) => {
|
|
241
233
|
if (!value)
|
|
242
234
|
return {};
|
|
@@ -276,7 +268,7 @@ const buildFunctionsOptionsFromEnv = () => {
|
|
|
276
268
|
if (normalized === 'all' || normalized === '*') {
|
|
277
269
|
return { enabled: true };
|
|
278
270
|
}
|
|
279
|
-
const names =
|
|
271
|
+
const names = ((0, env_1.parseEnvList)(rawFunctions) ?? []);
|
|
280
272
|
if (!names.length)
|
|
281
273
|
return undefined;
|
|
282
274
|
const services = names.map((name) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/knative-job-service",
|
|
3
|
-
"version": "2.27.
|
|
3
|
+
"version": "2.27.3",
|
|
4
4
|
"description": "knative job service",
|
|
5
5
|
"author": "Constructive <developers@constructive.io>",
|
|
6
6
|
"homepage": "https://github.com/constructive-io/jobs/tree/master/packages/knative-job-service#readme",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"url": "https://github.com/constructive-io/jobs/issues"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@constructive-io/graphql-server": "^4.44.
|
|
42
|
-
"@constructive-io/graphql-types": "^3.14.
|
|
43
|
-
"@constructive-io/postmaster": "^1.16.
|
|
41
|
+
"@constructive-io/graphql-server": "^4.44.3",
|
|
42
|
+
"@constructive-io/graphql-types": "^3.14.2",
|
|
43
|
+
"@constructive-io/postmaster": "^1.16.1",
|
|
44
44
|
"@pgpm/database-jobs": "^0.18.0",
|
|
45
45
|
"@pgpm/inflection": "^0.18.0",
|
|
46
46
|
"@pgpm/metaschema-modules": "^0.21.1",
|
|
@@ -48,26 +48,26 @@
|
|
|
48
48
|
"@pgpm/services": "^0.18.0",
|
|
49
49
|
"@pgpm/types": "^0.18.0",
|
|
50
50
|
"@pgpm/verify": "^0.18.0",
|
|
51
|
-
"@pgpmjs/core": "^6.32.
|
|
51
|
+
"@pgpmjs/core": "^6.32.1",
|
|
52
52
|
"@types/supertest": "^7.2.0",
|
|
53
53
|
"makage": "^0.3.0",
|
|
54
|
-
"pgsql-test": "^4.21.
|
|
54
|
+
"pgsql-test": "^4.21.1",
|
|
55
55
|
"supertest": "^7.2.2",
|
|
56
56
|
"ts-node": "^10.9.2"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@constructive-io/job-pg": "^2.16.
|
|
60
|
-
"@constructive-io/job-scheduler": "^2.16.
|
|
61
|
-
"@constructive-io/job-utils": "^2.16.
|
|
59
|
+
"@constructive-io/job-pg": "^2.16.2",
|
|
60
|
+
"@constructive-io/job-scheduler": "^2.16.2",
|
|
61
|
+
"@constructive-io/job-utils": "^2.16.2",
|
|
62
62
|
"@constructive-io/knative-job-fn": "^1.14.0",
|
|
63
|
-
"@constructive-io/knative-job-server": "^2.16.
|
|
64
|
-
"@constructive-io/knative-job-worker": "^2.20.
|
|
65
|
-
"@constructive-io/send-email-fn": "^1.17.
|
|
66
|
-
"@constructive-io/send-verification-link-fn": "^2.17.
|
|
67
|
-
"@pgpmjs/env": "^2.28.
|
|
63
|
+
"@constructive-io/knative-job-server": "^2.16.2",
|
|
64
|
+
"@constructive-io/knative-job-worker": "^2.20.2",
|
|
65
|
+
"@constructive-io/send-email-fn": "^1.17.2",
|
|
66
|
+
"@constructive-io/send-verification-link-fn": "^2.17.2",
|
|
67
|
+
"@pgpmjs/env": "^2.28.2",
|
|
68
68
|
"@pgpmjs/logger": "^2.14.0",
|
|
69
69
|
"async-retry": "1.3.3",
|
|
70
70
|
"pg": "8.21.0"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "e53a570a4a70987e82dc074bd73501971fd82828"
|
|
73
73
|
}
|