verteilen-core 1.3.40 → 1.3.41
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/dist/server/io.js +3 -3
- package/package.json +1 -1
- package/src/server/io.ts +3 -3
package/dist/server/io.js
CHANGED
|
@@ -68,16 +68,16 @@ const ObsoleteSupport = async (loader, type, folder) => {
|
|
|
68
68
|
const allRecordText = await Promise.all(ps);
|
|
69
69
|
const allRecord = allRecordText.map(x => JSON.parse(x));
|
|
70
70
|
const execute = allRecord.map(async (x) => {
|
|
71
|
+
const tasks = x.task;
|
|
71
72
|
x.tasks = [];
|
|
72
73
|
x.databaser_uuid = x.parameter_uuid;
|
|
73
|
-
x.tasks_uuid =
|
|
74
|
-
const tasks = x.task;
|
|
74
|
+
x.tasks_uuid = tasks.map(y => y.uuid);
|
|
75
75
|
delete x.parameter_uuid;
|
|
76
76
|
delete x.task;
|
|
77
77
|
const execute_task = tasks.map(async (y) => {
|
|
78
78
|
const jobs = y.jobs;
|
|
79
79
|
y.jobs = [];
|
|
80
|
-
y.jobs_uuid =
|
|
80
|
+
y.jobs_uuid = jobs.map(z => z.uuid);
|
|
81
81
|
const execute_jobs = jobs.map(async (z) => {
|
|
82
82
|
z.id_args = [];
|
|
83
83
|
const d3 = loader.join(loader.root, "job", `${z.uuid}.json`);
|
package/package.json
CHANGED
package/src/server/io.ts
CHANGED
|
@@ -148,17 +148,17 @@ export const ObsoleteSupport = async (loader:RecordIOBase, type:RecordType, fold
|
|
|
148
148
|
const allRecordText:Array<string> = await Promise.all(ps)
|
|
149
149
|
const allRecord:Array<any> = allRecordText.map(x => JSON.parse(x))
|
|
150
150
|
const execute = allRecord.map(async x => {
|
|
151
|
+
const tasks:Array<any> = x.task
|
|
151
152
|
x.tasks = []
|
|
152
153
|
x.databaser_uuid = x.parameter_uuid
|
|
153
|
-
x.tasks_uuid =
|
|
154
|
-
const tasks:Array<any> = x.task
|
|
154
|
+
x.tasks_uuid = tasks.map(y => y.uuid)
|
|
155
155
|
delete x.parameter_uuid
|
|
156
156
|
delete x.task
|
|
157
157
|
|
|
158
158
|
const execute_task = tasks.map(async y => {
|
|
159
159
|
const jobs = y.jobs
|
|
160
160
|
y.jobs = []
|
|
161
|
-
y.jobs_uuid =
|
|
161
|
+
y.jobs_uuid = jobs.map(z => z.uuid)
|
|
162
162
|
|
|
163
163
|
const execute_jobs = jobs.map(async z => {
|
|
164
164
|
z.id_args = []
|