pilot.linkstec 0.0.9__py3-none-any.whl → 0.0.10__py3-none-any.whl
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.
Potentially problematic release.
This version of pilot.linkstec might be problematic. Click here for more details.
- pilot/unit/impl/base_unit.py +12 -5
- {pilot_linkstec-0.0.9.dist-info → pilot_linkstec-0.0.10.dist-info}/METADATA +1 -1
- {pilot_linkstec-0.0.9.dist-info → pilot_linkstec-0.0.10.dist-info}/RECORD +6 -6
- {pilot_linkstec-0.0.9.dist-info → pilot_linkstec-0.0.10.dist-info}/WHEEL +0 -0
- {pilot_linkstec-0.0.9.dist-info → pilot_linkstec-0.0.10.dist-info}/licenses/LICENSE +0 -0
- {pilot_linkstec-0.0.9.dist-info → pilot_linkstec-0.0.10.dist-info}/top_level.txt +0 -0
pilot/unit/impl/base_unit.py
CHANGED
|
@@ -40,18 +40,25 @@ class BaseUnit(UnitInterface):
|
|
|
40
40
|
current_step_dir = self.config_dto.work_space + "/" + step
|
|
41
41
|
|
|
42
42
|
max_workers = self.config_dto.threads
|
|
43
|
-
|
|
44
|
-
if step in
|
|
43
|
+
unit_multiset = self.config_dto.multisteps
|
|
44
|
+
if step in unit_multiset:
|
|
45
45
|
max_workers = self.config_dto.threads
|
|
46
46
|
else:
|
|
47
47
|
max_workers = 1
|
|
48
48
|
def step_worker():
|
|
49
49
|
self._run_jobs_in_step_dir(current_step_dir, step, index)
|
|
50
50
|
|
|
51
|
-
with ThreadPoolExecutor(max_workers=max_workers) as executor:
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
#with ThreadPoolExecutor(max_workers=max_workers) as executor:
|
|
52
|
+
# future = executor.submit(step_worker)
|
|
53
|
+
# future.result()
|
|
54
54
|
# STEP完了後、次のSTEPを実行
|
|
55
|
+
with ThreadPoolExecutor(max_workers=max_workers) as executor:
|
|
56
|
+
futures = []
|
|
57
|
+
for _ in range(max_workers):
|
|
58
|
+
futures.append(executor.submit(step_worker))
|
|
59
|
+
time.sleep(0.5)
|
|
60
|
+
for future in futures:
|
|
61
|
+
future.result()
|
|
55
62
|
run_step(index + 1)
|
|
56
63
|
|
|
57
64
|
run_step(0)
|
|
@@ -19,11 +19,11 @@ pilot/splitters/cobolsplitter.py,sha256=oPwxKRjA7TyXWaWV3jdy59lJZy1mRn6yxD9ivqFY
|
|
|
19
19
|
pilot/unit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
20
|
pilot/unit/unit_interface.py,sha256=fE8N4h_rZU-dWLHy9o0EE3yyErGmRyIuGUDb-zqe7qo,167
|
|
21
21
|
pilot/unit/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
|
-
pilot/unit/impl/base_unit.py,sha256=
|
|
22
|
+
pilot/unit/impl/base_unit.py,sha256=lSQiP9NuHgapO8PJGrsTkejFwJhernbk6qPYH_8thi8,2719
|
|
23
23
|
pilot/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
24
|
pilot/util/files.py,sha256=v9uzfzo3Aq4xgnUIASEZeBJoA2nD9Qz_EA3P-FwzGFQ,1896
|
|
25
|
-
pilot_linkstec-0.0.
|
|
26
|
-
pilot_linkstec-0.0.
|
|
27
|
-
pilot_linkstec-0.0.
|
|
28
|
-
pilot_linkstec-0.0.
|
|
29
|
-
pilot_linkstec-0.0.
|
|
25
|
+
pilot_linkstec-0.0.10.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
|
|
26
|
+
pilot_linkstec-0.0.10.dist-info/METADATA,sha256=ge675xquQ47T08TWMZz0LXx-C9xWohZ9eDlChc85-9E,679
|
|
27
|
+
pilot_linkstec-0.0.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
28
|
+
pilot_linkstec-0.0.10.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
|
|
29
|
+
pilot_linkstec-0.0.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|