teraslice 3.0.0-dev.8 → 3.0.0-dev.9
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.
|
@@ -558,7 +558,7 @@ export class ApiService {
|
|
|
558
558
|
name,
|
|
559
559
|
node_version: process.version,
|
|
560
560
|
platform: this.context.platform,
|
|
561
|
-
teraslice_version: `v${
|
|
561
|
+
teraslice_version: `v${terasliceVersion}`
|
|
562
562
|
}, 1);
|
|
563
563
|
this.context.apis.foundation.promMetrics.set('slices_processed', {}, stats.controllers.processed);
|
|
564
564
|
this.context.apis.foundation.promMetrics.set('slices_failed', {}, stats.controllers.failed);
|
|
@@ -3,6 +3,7 @@ import { RecoveryCleanupType } from '@terascope/job-components';
|
|
|
3
3
|
import { v4 as uuid } from 'uuid';
|
|
4
4
|
import { makeLogger } from '../workers/helpers/terafoundation.js';
|
|
5
5
|
import { TerasliceElasticsearchStorage } from './backends/elasticsearch_store.js';
|
|
6
|
+
import { getPackageJSON } from '../utils/file_utils.js';
|
|
6
7
|
const INIT_STATUS = ['pending', 'scheduling', 'initializing'];
|
|
7
8
|
const RUNNING_STATUS = ['recovering', 'running', 'failing', 'paused', 'stopping'];
|
|
8
9
|
const TERMINAL_STATUS = ['completed', 'stopped', 'rejected', 'failed', 'terminated'];
|
|
@@ -78,7 +79,8 @@ export class ExecutionStorage {
|
|
|
78
79
|
_updated: date,
|
|
79
80
|
_has_errors: false,
|
|
80
81
|
_slicer_stats: {},
|
|
81
|
-
_failureReason: ''
|
|
82
|
+
_failureReason: '',
|
|
83
|
+
teraslice_version: `v${getPackageJSON().version}`
|
|
82
84
|
});
|
|
83
85
|
// @ts-expect-error
|
|
84
86
|
delete doc.slicer_port;
|
|
@@ -4,6 +4,7 @@ import { TestContext } from '../helpers/index.js';
|
|
|
4
4
|
import { getTestCases } from '../helpers/execution-controller-helper.js';
|
|
5
5
|
import { findPort } from '../../../src/lib/utils/port_utils.js';
|
|
6
6
|
import { newId } from '../../../src/lib/utils/id_utils.js';
|
|
7
|
+
import { getPackageJSON } from '../../../src/lib/utils/file_utils.js';
|
|
7
8
|
import { ExecutionController } from '../../../src/lib/workers/execution-controller/index.js';
|
|
8
9
|
const ExecutionControllerClient = ExController.Client;
|
|
9
10
|
describe('ExecutionController Test Cases', () => {
|
|
@@ -333,6 +334,10 @@ describe('ExecutionController Test Cases', () => {
|
|
|
333
334
|
const metadata = updateMetadata ? { slice_calls: count + 1 } : {};
|
|
334
335
|
expect(executionRecord).toHaveProperty('metadata', metadata);
|
|
335
336
|
});
|
|
337
|
+
it('should have the correct teraslice version', () => {
|
|
338
|
+
const terasliceVersion = `v${getPackageJSON().version}`;
|
|
339
|
+
expect(executionRecord.teraslice_version).toBe(terasliceVersion);
|
|
340
|
+
});
|
|
336
341
|
});
|
|
337
342
|
});
|
|
338
343
|
//# sourceMappingURL=execution-test-cases-spec.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "teraslice",
|
|
3
3
|
"displayName": "Teraslice",
|
|
4
|
-
"version": "3.0.0-dev.
|
|
4
|
+
"version": "3.0.0-dev.9",
|
|
5
5
|
"description": "Distributed computing platform for processing JSON data",
|
|
6
6
|
"homepage": "https://github.com/terascope/teraslice#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@kubernetes/client-node": "~1.3.0",
|
|
42
|
-
"@terascope/core-utils": "~2.0.0-dev.
|
|
43
|
-
"@terascope/elasticsearch-api": "~5.0.0-dev.
|
|
44
|
-
"@terascope/job-components": "~2.0.0-dev.
|
|
45
|
-
"@terascope/teraslice-messaging": "~2.0.0-dev.
|
|
46
|
-
"@terascope/types": "~2.0.0-dev.
|
|
42
|
+
"@terascope/core-utils": "~2.0.0-dev.8",
|
|
43
|
+
"@terascope/elasticsearch-api": "~5.0.0-dev.8",
|
|
44
|
+
"@terascope/job-components": "~2.0.0-dev.8",
|
|
45
|
+
"@terascope/teraslice-messaging": "~2.0.0-dev.9",
|
|
46
|
+
"@terascope/types": "~2.0.0-dev.7",
|
|
47
47
|
"async-mutex": "~0.5.0",
|
|
48
48
|
"barbe": "~3.0.17",
|
|
49
49
|
"body-parser": "~2.2.0",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"semver": "~7.7.2",
|
|
62
62
|
"socket.io": "~4.8.1",
|
|
63
63
|
"socket.io-client": "~4.8.1",
|
|
64
|
-
"terafoundation": "~2.0.0-dev.
|
|
64
|
+
"terafoundation": "~2.0.0-dev.8",
|
|
65
65
|
"uuid": "~13.0.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@terascope/opensearch-client": "~2.0.0-dev.
|
|
68
|
+
"@terascope/opensearch-client": "~2.0.0-dev.8",
|
|
69
69
|
"@types/archiver": "~6.0.3",
|
|
70
70
|
"@types/express": "~5.0.3",
|
|
71
71
|
"@types/gc-stats": "~1.4.3",
|