pilot.linkstec 0.0.4__py3-none-any.whl → 0.0.6__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.
- pilot/control/impl/base_controller.py +6 -4
- pilot/job/impl/base_job.py +1 -1
- pilot/unit/impl/base_unit.py +2 -1
- {pilot_linkstec-0.0.4.dist-info → pilot_linkstec-0.0.6.dist-info}/METADATA +1 -1
- {pilot_linkstec-0.0.4.dist-info → pilot_linkstec-0.0.6.dist-info}/RECORD +8 -8
- {pilot_linkstec-0.0.4.dist-info → pilot_linkstec-0.0.6.dist-info}/WHEEL +0 -0
- {pilot_linkstec-0.0.4.dist-info → pilot_linkstec-0.0.6.dist-info}/licenses/LICENSE +0 -0
- {pilot_linkstec-0.0.4.dist-info → pilot_linkstec-0.0.6.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from concurrent.futures import ThreadPoolExecutor
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
from pilot.control.control_interface import ControlInterface
|
|
5
5
|
from pilot.unit.impl.base_unit import BaseUnit
|
|
6
6
|
from pilot.config.config_reader import ConfigReader
|
|
@@ -9,16 +9,18 @@ from pilot.config.config_reader import ConfigReader
|
|
|
9
9
|
class BaseController(ControlInterface):
|
|
10
10
|
|
|
11
11
|
def __init__(self):
|
|
12
|
-
|
|
12
|
+
pass
|
|
13
|
+
|
|
13
14
|
|
|
14
15
|
def _init_unit(self):
|
|
15
16
|
return BaseUnit()
|
|
16
17
|
|
|
17
|
-
def run(self):
|
|
18
|
+
def run(self,configfile: str = None):
|
|
18
19
|
import time
|
|
19
|
-
config_dto = ConfigReader().get_dto()
|
|
20
|
+
config_dto = ConfigReader(configfile).get_dto()
|
|
20
21
|
def worker():
|
|
21
22
|
unit = self._init_unit()
|
|
23
|
+
unit.config_dto = config_dto
|
|
22
24
|
unit.run()
|
|
23
25
|
with ThreadPoolExecutor(max_workers=config_dto.threads) as executor:
|
|
24
26
|
futures = []
|
pilot/job/impl/base_job.py
CHANGED
pilot/unit/impl/base_unit.py
CHANGED
|
@@ -9,7 +9,7 @@ class BaseUnit(UnitInterface):
|
|
|
9
9
|
joblist = []
|
|
10
10
|
|
|
11
11
|
def __init__(self):
|
|
12
|
-
|
|
12
|
+
pass
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def _init_job(self,step):
|
|
@@ -28,6 +28,7 @@ class BaseUnit(UnitInterface):
|
|
|
28
28
|
for filename in filenames:
|
|
29
29
|
file_path = os.path.join(dirpath, filename)
|
|
30
30
|
job = self._init_job(step)
|
|
31
|
+
job.config_dto = self.config_dto
|
|
31
32
|
job.current_step = step
|
|
32
33
|
job.step_index = index
|
|
33
34
|
job.file_path = file_path
|
|
@@ -4,7 +4,7 @@ pilot/config/config_reader.py,sha256=RL9925CIjKyimvcspzmZkPzJUJe6z28cfz5nGhZ3g3k
|
|
|
4
4
|
pilot/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
pilot/control/control_interface.py,sha256=zGv380oQgAKPAIHDHeFdPYzhj2Ngo2T66NWlNloA7vY,124
|
|
6
6
|
pilot/control/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
pilot/control/impl/base_controller.py,sha256=
|
|
7
|
+
pilot/control/impl/base_controller.py,sha256=XdqpoyO6mw7sNp14hZo5BP1Eel39W8Q_VWmTMFYy4Wo,924
|
|
8
8
|
pilot/conver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
pilot/conver/converfileEncodding.py,sha256=UqjcWO0bzkuTRHLEWrWJkeo3p-P7WuYE7jFKveyPekA,2781
|
|
10
10
|
pilot/conver/nkf_converter.py,sha256=JqgThmXcdnTGMsLIHUEwe8sc0VGMqDaKCIQTg-UE3WE,1148
|
|
@@ -13,17 +13,17 @@ pilot/generater/vertexai.py,sha256=ZUyrPGHuuUlycMW0efzSCRYvESCfmZb1E-JjUwl8wTM,2
|
|
|
13
13
|
pilot/job/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
pilot/job/job_interface.py,sha256=LL0hfuFfnKnkpQD99jv1hkaAIAFM-JJPrX3PFxN6O_A,120
|
|
15
15
|
pilot/job/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
-
pilot/job/impl/base_job.py,sha256=
|
|
16
|
+
pilot/job/impl/base_job.py,sha256=c8ANXdJZDuO0KEorPhO41uwr0tMTaY1jis0e_Ep3jtg,13572
|
|
17
17
|
pilot/splitters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
18
|
pilot/splitters/cobolsplitter.py,sha256=oPwxKRjA7TyXWaWV3jdy59lJZy1mRn6yxD9ivqFYCuY,5461
|
|
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=fD9WI5L80m9d1qqr5-I7Bw0jtzK66Ql5Rj2rrQjjZ-Q,1275
|
|
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.6.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
|
|
26
|
+
pilot_linkstec-0.0.6.dist-info/METADATA,sha256=khYYQPFUP89f-p_M9MiIBrQlAJ8ttx93YyZE5yJgGV0,678
|
|
27
|
+
pilot_linkstec-0.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
28
|
+
pilot_linkstec-0.0.6.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
|
|
29
|
+
pilot_linkstec-0.0.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|