verteilen-core 1.2.4 → 1.2.6

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.
Files changed (92) hide show
  1. package/dist/index.d.ts +3 -0
  2. package/dist/jest.config.d.ts +2 -0
  3. package/dist/src/client/analysis.d.ts +35 -0
  4. package/dist/src/client/analysis.js +318 -319
  5. package/dist/src/client/client.d.ts +25 -0
  6. package/dist/src/client/client.js +162 -168
  7. package/dist/src/client/cluster.d.ts +1 -0
  8. package/dist/src/client/cluster.js +1 -2
  9. package/dist/src/client/database.d.ts +13 -0
  10. package/dist/src/client/database.js +28 -27
  11. package/dist/src/client/execute.d.ts +24 -0
  12. package/dist/src/client/execute.js +61 -51
  13. package/dist/src/client/http.d.ts +7 -0
  14. package/dist/src/client/http.js +29 -26
  15. package/dist/src/client/javascript.d.ts +47 -0
  16. package/dist/src/client/javascript.js +110 -136
  17. package/dist/src/client/job_database.d.ts +10 -0
  18. package/dist/src/client/job_database.js +27 -29
  19. package/dist/src/client/job_execute.d.ts +20 -0
  20. package/dist/src/client/job_execute.js +148 -146
  21. package/dist/src/client/os.d.ts +29 -0
  22. package/dist/src/client/os.js +131 -136
  23. package/dist/src/client/resource.d.ts +7 -0
  24. package/dist/src/client/resource.js +93 -104
  25. package/dist/src/client/shell.d.ts +16 -0
  26. package/dist/src/client/shell.js +102 -98
  27. package/dist/src/computed.d.ts +13 -0
  28. package/dist/src/interface/base.d.ts +70 -0
  29. package/dist/src/interface/bus.d.ts +90 -0
  30. package/dist/src/interface/enum.d.ts +143 -0
  31. package/dist/src/interface/execute.d.ts +20 -0
  32. package/dist/src/interface/record.d.ts +93 -0
  33. package/dist/src/interface/server.d.ts +76 -0
  34. package/dist/src/interface/struct.d.ts +182 -0
  35. package/dist/src/interface/table.d.ts +20 -0
  36. package/dist/src/interface/ui.d.ts +29 -0
  37. package/dist/src/interface.d.ts +29 -0
  38. package/dist/src/plugins/i18n.d.ts +1666 -0
  39. package/dist/src/script/console_manager.d.ts +18 -0
  40. package/dist/src/script/console_manager.js +97 -91
  41. package/dist/src/script/console_server_manager.d.ts +13 -0
  42. package/dist/src/script/console_server_manager.js +29 -26
  43. package/dist/src/script/execute/base.d.ts +45 -0
  44. package/dist/src/script/execute/base.js +165 -162
  45. package/dist/src/script/execute/feedback.d.ts +12 -0
  46. package/dist/src/script/execute/feedback.js +162 -171
  47. package/dist/src/script/execute/interface.d.ts +8 -0
  48. package/dist/src/script/execute/region_job.d.ts +5 -0
  49. package/dist/src/script/execute/region_job.js +1 -0
  50. package/dist/src/script/execute/region_project.d.ts +10 -0
  51. package/dist/src/script/execute/region_project.js +4 -0
  52. package/dist/src/script/execute/region_subtask.d.ts +5 -0
  53. package/dist/src/script/execute/region_subtask.js +1 -0
  54. package/dist/src/script/execute/region_task.d.ts +10 -0
  55. package/dist/src/script/execute/region_task.js +4 -0
  56. package/dist/src/script/execute/runner.d.ts +14 -0
  57. package/dist/src/script/execute/runner.js +129 -139
  58. package/dist/src/script/execute/util_parser.d.ts +14 -0
  59. package/dist/src/script/execute/util_parser.js +119 -121
  60. package/dist/src/script/execute_manager.d.ts +25 -0
  61. package/dist/src/script/execute_manager.js +266 -278
  62. package/dist/src/script/socket_manager.d.ts +31 -0
  63. package/dist/src/script/socket_manager.js +196 -193
  64. package/dist/src/script/webhook_manager.d.ts +3 -0
  65. package/dist/src/script/webhook_server_manager.d.ts +13 -0
  66. package/dist/src/script/webhook_server_manager.js +79 -86
  67. package/dist/src/server/detail.d.ts +72 -0
  68. package/dist/src/server/detail.js +401 -378
  69. package/dist/src/server/io.d.ts +46 -0
  70. package/dist/src/server/io.js +42 -51
  71. package/dist/src/server/plugin.d.ts +18 -0
  72. package/dist/src/server/plugin.js +45 -54
  73. package/dist/src/server/server.d.ts +27 -0
  74. package/dist/src/server/server.js +38 -36
  75. package/dist/src/server.d.ts +4 -0
  76. package/dist/src/util/console_handle.d.ts +20 -0
  77. package/dist/src/util/console_handle.js +214 -218
  78. package/dist/src/util/log_handle.d.ts +23 -0
  79. package/dist/src/util/log_handle.js +158 -164
  80. package/dist/test/TEST.d.ts +1 -0
  81. package/dist/test/TEST.js +37 -54
  82. package/dist/test/client/execute.test.d.ts +1 -0
  83. package/dist/test/client/execute.test.js +6 -15
  84. package/dist/test/client/javascript.test.d.ts +1 -0
  85. package/dist/test/client/javascript.test.js +21 -30
  86. package/dist/test/client/server.test.d.ts +1 -0
  87. package/dist/test/client/task.test.d.ts +1 -0
  88. package/dist/test/client/task.test.js +1 -1
  89. package/dist/test/script/parser.test.d.ts +1 -0
  90. package/dist/test/script/socket.test.d.ts +1 -0
  91. package/package.json +1 -1
  92. package/tsconfig.json +5 -3
@@ -4,185 +4,176 @@ exports.ExecuteManager_Feedback = void 0;
4
4
  const interface_1 = require("../../interface");
5
5
  const base_1 = require("./base");
6
6
  class ExecuteManager_Feedback extends base_1.ExecuteManager_Base {
7
- constructor() {
8
- super(...arguments);
9
- this.Analysis = (d) => {
10
- const targetn = this.current_nodes.find(x => { var _a; return x.uuid == ((_a = d.c) === null || _a === void 0 ? void 0 : _a.uuid); });
11
- if (targetn == undefined) {
12
- this.messager_log("Not inside");
13
- return;
14
- }
15
- const typeMap = {
16
- 'feedback_message': this.feedback_message,
17
- 'feedback_job': this.feedback_job,
18
- 'feedback_string': this.feedback_string,
19
- 'feedback_boolean': this.feedback_boolean,
20
- 'feedback_number': this.feedback_number,
21
- 'feedback_object': this.feedback_object,
22
- };
23
- if (typeMap.hasOwnProperty(d.name)) {
24
- const castingFunc = typeMap[d.h.name];
25
- castingFunc(d.h.data, targetn, d.h.meta);
26
- }
27
- else {
28
- this.messager_log(`[Source Data Analysis] Decode failed, Unknowed header, name: ${d.name}, meta: ${d.h.meta}`);
29
- }
7
+ Analysis = (d) => {
8
+ const targetn = this.current_nodes.find(x => x.uuid == d.c?.uuid);
9
+ if (targetn == undefined) {
10
+ this.messager_log("Not inside");
11
+ return;
12
+ }
13
+ const typeMap = {
14
+ 'feedback_message': this.feedback_message,
15
+ 'feedback_job': this.feedback_job,
16
+ 'feedback_string': this.feedback_string,
17
+ 'feedback_boolean': this.feedback_boolean,
18
+ 'feedback_number': this.feedback_number,
19
+ 'feedback_object': this.feedback_object,
30
20
  };
31
- this.feedback_message = (data, source, meta) => {
32
- var _a;
33
- if (source == undefined) {
34
- this.messager_log("[Server Feedback Warn] source is none");
35
- return;
21
+ if (typeMap.hasOwnProperty(d.name)) {
22
+ const castingFunc = typeMap[d.h.name];
23
+ castingFunc(d.h.data, targetn, d.h.meta);
24
+ }
25
+ else {
26
+ this.messager_log(`[Source Data Analysis] Decode failed, Unknowed header, name: ${d.name}, meta: ${d.h.meta}`);
27
+ }
28
+ };
29
+ feedback_message = (data, source, meta) => {
30
+ if (source == undefined) {
31
+ this.messager_log("[Server Feedback Warn] source is none");
32
+ return;
33
+ }
34
+ if (this.state == interface_1.ExecuteState.NONE) {
35
+ this.messager_log("[Server Feedback Warn] state is none, should not received feedback");
36
+ return;
37
+ }
38
+ this.messager_log(`[Execute] Single Received data: ${data.data}, cron length: ${this.current_cron.length}`);
39
+ let index = 0;
40
+ if (this.current_cron.length > 0 && meta != undefined) {
41
+ const r = this.GetCronAndWork(meta, source);
42
+ const cron = r[0];
43
+ const work = r[1];
44
+ if (cron != undefined && work != undefined) {
45
+ index = cron.id;
36
46
  }
37
- if (this.state == interface_1.ExecuteState.NONE) {
38
- this.messager_log("[Server Feedback Warn] state is none, should not received feedback");
39
- return;
40
- }
41
- this.messager_log(`[Execute] Single Received data: ${data.data}, cron length: ${this.current_cron.length}`);
42
- let index = 0;
43
- if (this.current_cron.length > 0 && meta != undefined) {
44
- const r = this.GetCronAndWork(meta, source);
45
- const cron = r[0];
46
- const work = r[1];
47
- if (cron != undefined && work != undefined) {
48
- index = cron.id;
49
- }
50
- }
51
- const d = {
52
- node_uuid: source.uuid,
53
- index: index,
54
- job_uuid: '',
55
- runtime_uuid: '',
56
- meta: 0,
57
- message: data.data
58
- };
59
- (_a = this.proxy) === null || _a === void 0 ? void 0 : _a.feedbackMessage(d);
47
+ }
48
+ const d = {
49
+ node_uuid: source.uuid,
50
+ index: index,
51
+ job_uuid: '',
52
+ runtime_uuid: '',
53
+ meta: 0,
54
+ message: data.data
60
55
  };
61
- this.feedback_job = (data, source) => {
62
- var _a, _b, _c, _d, _e;
63
- if (source == undefined)
64
- return;
65
- if (this.state == interface_1.ExecuteState.NONE)
56
+ this.proxy?.feedbackMessage(d);
57
+ };
58
+ feedback_job = (data, source) => {
59
+ if (source == undefined)
60
+ return;
61
+ if (this.state == interface_1.ExecuteState.NONE)
62
+ return;
63
+ this.jobstack = Math.max(this.jobstack - 1, 0);
64
+ if (this.current_t == undefined) {
65
+ console.error("Cannot feedback when task is null");
66
+ return;
67
+ }
68
+ this.messager_log(`[Execute] Job Feedback: ${data.job_uuid} ${data.runtime_uuid} ${data.message} ${data.meta}`);
69
+ if (this.current_job.length > 0) {
70
+ const work = this.current_job.find(x => x.uuid == source.uuid && x.state == interface_1.ExecuteState.RUNNING);
71
+ if (work == undefined) {
72
+ console.error("Cannot find the feedback container, work", work);
66
73
  return;
67
- this.jobstack = Math.max(this.jobstack - 1, 0);
68
- if (this.current_t == undefined) {
69
- console.error("Cannot feedback when task is null");
70
- return;
71
- }
72
- this.messager_log(`[Execute] Job Feedback: ${data.job_uuid} ${data.runtime_uuid} ${data.message} ${data.meta}`);
73
- if (this.current_job.length > 0) {
74
- const work = this.current_job.find(x => x.uuid == source.uuid && x.state == interface_1.ExecuteState.RUNNING);
75
- if (work == undefined) {
76
- console.error("Cannot find the feedback container, work", work);
77
- return;
78
- }
79
- data.index = 0;
80
- (_a = this.proxy) === null || _a === void 0 ? void 0 : _a.executeJobFinish([work.job, 0, source.uuid, data.meta]);
81
- work.state = data.meta == 0 ? interface_1.ExecuteState.FINISH : interface_1.ExecuteState.ERROR;
82
- if (this.check_single_end()) {
83
- (_b = this.proxy) === null || _b === void 0 ? void 0 : _b.executeSubtaskFinish([this.current_t, 0, source.uuid]);
84
- this.messager_log(`[Execute] Subtask finish: ${this.current_t.uuid}`);
85
- }
86
74
  }
87
- else if (this.current_cron.length > 0) {
88
- const r = this.GetCronAndWork(data.runtime_uuid, source);
89
- const cron = r[0];
90
- const work = r[1];
91
- if (cron == undefined || work == undefined) {
92
- console.error("Cannot find the feedback container, cron or work", data.runtime_uuid, cron, work);
93
- console.error("Full current cron instance", this.current_cron);
94
- return;
95
- }
96
- (_c = this.proxy) === null || _c === void 0 ? void 0 : _c.executeJobFinish([work.job, cron.id, source.uuid, data.meta]);
97
- data.index = cron.id;
98
- work.state = data.meta == 0 ? interface_1.ExecuteState.FINISH : interface_1.ExecuteState.ERROR;
99
- if (this.check_cron_end(cron)) {
100
- (_d = this.proxy) === null || _d === void 0 ? void 0 : _d.executeSubtaskFinish([this.current_t, cron.id, cron.uuid]);
101
- this.messager_log(`[Execute] Subtask finish: ${this.current_t.uuid}`);
102
- cron.uuid = '';
103
- }
75
+ data.index = 0;
76
+ this.proxy?.executeJobFinish([work.job, 0, source.uuid, data.meta]);
77
+ work.state = data.meta == 0 ? interface_1.ExecuteState.FINISH : interface_1.ExecuteState.ERROR;
78
+ if (this.check_single_end()) {
79
+ this.proxy?.executeSubtaskFinish([this.current_t, 0, source.uuid]);
80
+ this.messager_log(`[Execute] Subtask finish: ${this.current_t.uuid}`);
104
81
  }
105
- const index = source.current_job.findIndex(x => x == data.runtime_uuid);
106
- if (index == -1) {
107
- this.messager_log(`[Execute] Cannot find runtime uuid: ${data.runtime_uuid} in websocket pack source: ${source.uuid}`);
82
+ }
83
+ else if (this.current_cron.length > 0) {
84
+ const r = this.GetCronAndWork(data.runtime_uuid, source);
85
+ const cron = r[0];
86
+ const work = r[1];
87
+ if (cron == undefined || work == undefined) {
88
+ console.error("Cannot find the feedback container, cron or work", data.runtime_uuid, cron, work);
89
+ console.error("Full current cron instance", this.current_cron);
90
+ return;
108
91
  }
109
- else {
110
- source.current_job.splice(index, 1);
92
+ this.proxy?.executeJobFinish([work.job, cron.id, source.uuid, data.meta]);
93
+ data.index = cron.id;
94
+ work.state = data.meta == 0 ? interface_1.ExecuteState.FINISH : interface_1.ExecuteState.ERROR;
95
+ if (this.check_cron_end(cron)) {
96
+ this.proxy?.executeSubtaskFinish([this.current_t, cron.id, cron.uuid]);
97
+ this.messager_log(`[Execute] Subtask finish: ${this.current_t.uuid}`);
98
+ cron.uuid = '';
111
99
  }
112
- data.node_uuid = source.uuid;
113
- (_e = this.proxy) === null || _e === void 0 ? void 0 : _e.feedbackMessage(data);
114
- };
115
- this.feedback_string = (data) => {
116
- var _a;
117
- if (this.current_p == undefined)
118
- return;
119
- const index = this.localPara.containers.findIndex(x => x.name == data.key && x.type == interface_1.DataType.String);
120
- if (index != -1)
121
- this.localPara.containers[index].value = data.value;
122
- else
123
- this.localPara.containers.push({ name: data.key, value: data.value, type: interface_1.DataType.String, hidden: true, runtimeOnly: true });
124
- this.messager_log(`[String Feedback] ${data.key} = ${data.value}`);
125
- const d = { name: 'set_database', data: this.localPara };
126
- this.current_nodes.forEach(x => x.websocket.send(JSON.stringify(d)));
127
- (_a = this.proxy) === null || _a === void 0 ? void 0 : _a.updateDatabase(this.localPara);
128
- };
129
- this.feedback_number = (data) => {
130
- var _a;
131
- if (this.current_p == undefined)
132
- return;
133
- const index = this.localPara.containers.findIndex(x => x.name == data.key && x.type == interface_1.DataType.Number);
134
- if (index != -1)
135
- this.localPara.containers[index].value = data.value;
136
- else
137
- this.localPara.containers.push({ name: data.key, value: data.value, type: interface_1.DataType.Number, hidden: true, runtimeOnly: true });
138
- this.messager_log(`[Number Feedback] ${data.key} = ${data.value}`);
139
- const d = { name: 'set_database', data: this.localPara };
140
- this.current_nodes.forEach(x => x.websocket.send(JSON.stringify(d)));
141
- (_a = this.proxy) === null || _a === void 0 ? void 0 : _a.updateDatabase(this.localPara);
142
- };
143
- this.feedback_object = (data) => {
144
- var _a;
145
- if (this.current_p == undefined)
146
- return;
147
- const index = this.localPara.containers.findIndex(x => x.name == data.key && x.type == interface_1.DataType.Object);
148
- if (index != -1)
149
- this.localPara.containers[index].value = data.value;
150
- else
151
- this.localPara.containers.push({ name: data.key, value: data.value, type: interface_1.DataType.Object, hidden: true, runtimeOnly: true });
152
- this.messager_log(`[Object Feedback] ${data.key}`);
153
- const d = { name: 'set_database', data: this.localPara };
154
- this.current_nodes.forEach(x => x.websocket.send(JSON.stringify(d)));
155
- (_a = this.proxy) === null || _a === void 0 ? void 0 : _a.updateDatabase(this.localPara);
156
- };
157
- this.feedback_boolean = (data) => {
158
- var _a;
159
- if (this.current_p == undefined)
160
- return;
161
- const index = this.localPara.containers.findIndex(x => x.name == data.key && x.type == interface_1.DataType.Boolean);
162
- if (index != -1)
163
- this.localPara.containers[index].value = data.value;
164
- else
165
- this.localPara.containers.push({ name: data.key, value: data.value, type: interface_1.DataType.Boolean, hidden: true, runtimeOnly: true });
166
- this.messager_log(`[Boolean Feedback] ${data.key} = ${data.value}`);
167
- const d = { name: 'set_database', data: this.localPara };
168
- this.current_nodes.forEach(x => x.websocket.send(JSON.stringify(d)));
169
- (_a = this.proxy) === null || _a === void 0 ? void 0 : _a.updateDatabase(this.localPara);
170
- };
171
- this.GetCronAndWork = (runtime, source) => {
172
- let cron = undefined;
173
- let work = undefined;
174
- const crons = this.current_cron.filter(x => x.uuid == source.uuid);
175
- for (let i = 0; i < crons.length; i++) {
176
- const c = crons[i];
177
- const a = c.work.find(x => x.runtime == runtime);
178
- if (a != undefined) {
179
- cron = c;
180
- work = a;
181
- break;
182
- }
100
+ }
101
+ const index = source.current_job.findIndex(x => x == data.runtime_uuid);
102
+ if (index == -1) {
103
+ this.messager_log(`[Execute] Cannot find runtime uuid: ${data.runtime_uuid} in websocket pack source: ${source.uuid}`);
104
+ }
105
+ else {
106
+ source.current_job.splice(index, 1);
107
+ }
108
+ data.node_uuid = source.uuid;
109
+ this.proxy?.feedbackMessage(data);
110
+ };
111
+ feedback_string = (data) => {
112
+ if (this.current_p == undefined)
113
+ return;
114
+ const index = this.localPara.containers.findIndex(x => x.name == data.key && x.type == interface_1.DataType.String);
115
+ if (index != -1)
116
+ this.localPara.containers[index].value = data.value;
117
+ else
118
+ this.localPara.containers.push({ name: data.key, value: data.value, type: interface_1.DataType.String, hidden: true, runtimeOnly: true });
119
+ this.messager_log(`[String Feedback] ${data.key} = ${data.value}`);
120
+ const d = { name: 'set_database', data: this.localPara };
121
+ this.current_nodes.forEach(x => x.websocket.send(JSON.stringify(d)));
122
+ this.proxy?.updateDatabase(this.localPara);
123
+ };
124
+ feedback_number = (data) => {
125
+ if (this.current_p == undefined)
126
+ return;
127
+ const index = this.localPara.containers.findIndex(x => x.name == data.key && x.type == interface_1.DataType.Number);
128
+ if (index != -1)
129
+ this.localPara.containers[index].value = data.value;
130
+ else
131
+ this.localPara.containers.push({ name: data.key, value: data.value, type: interface_1.DataType.Number, hidden: true, runtimeOnly: true });
132
+ this.messager_log(`[Number Feedback] ${data.key} = ${data.value}`);
133
+ const d = { name: 'set_database', data: this.localPara };
134
+ this.current_nodes.forEach(x => x.websocket.send(JSON.stringify(d)));
135
+ this.proxy?.updateDatabase(this.localPara);
136
+ };
137
+ feedback_object = (data) => {
138
+ if (this.current_p == undefined)
139
+ return;
140
+ const index = this.localPara.containers.findIndex(x => x.name == data.key && x.type == interface_1.DataType.Object);
141
+ if (index != -1)
142
+ this.localPara.containers[index].value = data.value;
143
+ else
144
+ this.localPara.containers.push({ name: data.key, value: data.value, type: interface_1.DataType.Object, hidden: true, runtimeOnly: true });
145
+ this.messager_log(`[Object Feedback] ${data.key}`);
146
+ const d = { name: 'set_database', data: this.localPara };
147
+ this.current_nodes.forEach(x => x.websocket.send(JSON.stringify(d)));
148
+ this.proxy?.updateDatabase(this.localPara);
149
+ };
150
+ feedback_boolean = (data) => {
151
+ if (this.current_p == undefined)
152
+ return;
153
+ const index = this.localPara.containers.findIndex(x => x.name == data.key && x.type == interface_1.DataType.Boolean);
154
+ if (index != -1)
155
+ this.localPara.containers[index].value = data.value;
156
+ else
157
+ this.localPara.containers.push({ name: data.key, value: data.value, type: interface_1.DataType.Boolean, hidden: true, runtimeOnly: true });
158
+ this.messager_log(`[Boolean Feedback] ${data.key} = ${data.value}`);
159
+ const d = { name: 'set_database', data: this.localPara };
160
+ this.current_nodes.forEach(x => x.websocket.send(JSON.stringify(d)));
161
+ this.proxy?.updateDatabase(this.localPara);
162
+ };
163
+ GetCronAndWork = (runtime, source) => {
164
+ let cron = undefined;
165
+ let work = undefined;
166
+ const crons = this.current_cron.filter(x => x.uuid == source.uuid);
167
+ for (let i = 0; i < crons.length; i++) {
168
+ const c = crons[i];
169
+ const a = c.work.find(x => x.runtime == runtime);
170
+ if (a != undefined) {
171
+ cron = c;
172
+ work = a;
173
+ break;
183
174
  }
184
- return [cron, work];
185
- };
186
- }
175
+ }
176
+ return [cron, work];
177
+ };
187
178
  }
188
179
  exports.ExecuteManager_Feedback = ExecuteManager_Feedback;
@@ -0,0 +1,8 @@
1
+ export * from './base';
2
+ export * from './feedback';
3
+ export * from './region_job';
4
+ export * from './region_project';
5
+ export * from './region_subtask';
6
+ export * from './region_task';
7
+ export * from './runner';
8
+ export * from './util_parser';
@@ -0,0 +1,5 @@
1
+ import { ExecuteManager } from "../execute_manager";
2
+ export declare class Region_Job {
3
+ target: ExecuteManager;
4
+ constructor(_target: ExecuteManager);
5
+ }
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Region_Job = void 0;
4
4
  class Region_Job {
5
+ target;
5
6
  constructor(_target) {
6
7
  this.target = _target;
7
8
  }
@@ -0,0 +1,10 @@
1
+ import { ExecuteState, Project } from "../../interface";
2
+ import { ExecuteManager } from "../execute_manager";
3
+ import { Region_Task } from "./region_task";
4
+ export declare class Region_Project {
5
+ target: ExecuteManager;
6
+ state: ExecuteState;
7
+ project: Project;
8
+ task: Region_Task | undefined;
9
+ constructor(_target: ExecuteManager, _project: Project);
10
+ }
@@ -4,6 +4,10 @@ exports.Region_Project = void 0;
4
4
  const interface_1 = require("../../interface");
5
5
  const region_task_1 = require("./region_task");
6
6
  class Region_Project {
7
+ target;
8
+ state;
9
+ project;
10
+ task;
7
11
  constructor(_target, _project) {
8
12
  this.project = _project;
9
13
  this.target = _target;
@@ -0,0 +1,5 @@
1
+ import { ExecuteManager } from "../execute_manager";
2
+ export declare class Region_Subtask {
3
+ target: ExecuteManager;
4
+ constructor(_target: ExecuteManager);
5
+ }
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Region_Subtask = void 0;
4
4
  class Region_Subtask {
5
+ target;
5
6
  constructor(_target) {
6
7
  this.target = _target;
7
8
  }
@@ -0,0 +1,10 @@
1
+ import { ExecuteState, Task } from "../../interface";
2
+ import { ExecuteManager } from "../execute_manager";
3
+ import { Region_Subtask } from "./region_subtask";
4
+ export declare class Region_Task {
5
+ target: ExecuteManager;
6
+ state: ExecuteState;
7
+ task: Task;
8
+ subtask: Region_Subtask | undefined;
9
+ constructor(_target: ExecuteManager, _task: Task);
10
+ }
@@ -4,6 +4,10 @@ exports.Region_Task = void 0;
4
4
  const interface_1 = require("../../interface");
5
5
  const region_subtask_1 = require("./region_subtask");
6
6
  class Region_Task {
7
+ target;
8
+ state;
9
+ task;
10
+ subtask;
7
11
  constructor(_target, _task) {
8
12
  this.task = _task;
9
13
  this.target = _target;
@@ -0,0 +1,14 @@
1
+ import { Project, Task } from "../../interface";
2
+ import { ExecuteManager_Feedback } from "./feedback";
3
+ export declare class ExecuteManager_Runner extends ExecuteManager_Feedback {
4
+ protected ExecuteProject: (project: Project) => void;
5
+ private ExecuteTask;
6
+ private ExecuteTask_Cronjob;
7
+ private ExecuteTask_Single;
8
+ private ExecuteTask_Setup;
9
+ private ExecuteTask_AllFinish;
10
+ private ExecuteCronTask;
11
+ private ExecuteJob;
12
+ SyncDatabase: (p: Project) => void;
13
+ protected Init_CronContainer: (task: Task, taskCount: number) => void;
14
+ }