parsl 2024.11.4__py3-none-any.whl → 2024.11.11__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.
- parsl/channels/base.py +6 -46
- parsl/channels/errors.py +0 -67
- parsl/channels/local/local.py +5 -56
- parsl/dataflow/dflow.py +1 -56
- parsl/executors/taskvine/manager.py +6 -0
- parsl/executors/taskvine/manager_config.py +5 -0
- parsl/monitoring/monitoring.py +20 -21
- parsl/monitoring/radios.py +1 -3
- parsl/providers/cluster_provider.py +1 -4
- parsl/providers/condor/condor.py +1 -4
- parsl/providers/grid_engine/grid_engine.py +1 -4
- parsl/providers/lsf/lsf.py +1 -4
- parsl/providers/pbspro/pbspro.py +1 -4
- parsl/providers/slurm/slurm.py +1 -4
- parsl/providers/torque/torque.py +1 -4
- parsl/tests/configs/user_opts.py +0 -7
- parsl/tests/conftest.py +0 -4
- parsl/tests/test_channels/test_local_channel.py +0 -19
- parsl/tests/test_providers/test_local_provider.py +0 -135
- parsl/tests/test_providers/test_pbspro_template.py +2 -1
- parsl/tests/test_providers/test_slurm_template.py +2 -1
- parsl/version.py +1 -1
- {parsl-2024.11.4.dist-info → parsl-2024.11.11.dist-info}/METADATA +2 -8
- {parsl-2024.11.4.dist-info → parsl-2024.11.11.dist-info}/RECORD +32 -43
- {parsl-2024.11.4.dist-info → parsl-2024.11.11.dist-info}/WHEEL +1 -1
- parsl/channels/oauth_ssh/__init__.py +0 -0
- parsl/channels/oauth_ssh/oauth_ssh.py +0 -119
- parsl/channels/ssh/__init__.py +0 -0
- parsl/channels/ssh/ssh.py +0 -295
- parsl/channels/ssh_il/__init__.py +0 -0
- parsl/channels/ssh_il/ssh_il.py +0 -85
- parsl/providers/ad_hoc/__init__.py +0 -0
- parsl/providers/ad_hoc/ad_hoc.py +0 -252
- parsl/tests/configs/local_adhoc.py +0 -18
- parsl/tests/sites/test_local_adhoc.py +0 -62
- parsl/tests/test_channels/test_dfk_close.py +0 -26
- {parsl-2024.11.4.data → parsl-2024.11.11.data}/scripts/exec_parsl_function.py +0 -0
- {parsl-2024.11.4.data → parsl-2024.11.11.data}/scripts/interchange.py +0 -0
- {parsl-2024.11.4.data → parsl-2024.11.11.data}/scripts/parsl_coprocess.py +0 -0
- {parsl-2024.11.4.data → parsl-2024.11.11.data}/scripts/process_worker_pool.py +0 -0
- {parsl-2024.11.4.dist-info → parsl-2024.11.11.dist-info}/LICENSE +0 -0
- {parsl-2024.11.4.dist-info → parsl-2024.11.11.dist-info}/entry_points.txt +0 -0
- {parsl-2024.11.4.dist-info → parsl-2024.11.11.dist-info}/top_level.txt +0 -0
@@ -1,62 +0,0 @@
|
|
1
|
-
import logging
|
2
|
-
|
3
|
-
import pytest
|
4
|
-
|
5
|
-
from parsl import python_app
|
6
|
-
from parsl.tests.configs.local_adhoc import fresh_config as local_config
|
7
|
-
|
8
|
-
logger = logging.getLogger(__name__)
|
9
|
-
|
10
|
-
|
11
|
-
@python_app
|
12
|
-
def python_app_2():
|
13
|
-
import os
|
14
|
-
import threading
|
15
|
-
import time
|
16
|
-
time.sleep(1)
|
17
|
-
return "Hello from PID[{}] TID[{}]".format(os.getpid(), threading.current_thread())
|
18
|
-
|
19
|
-
|
20
|
-
@python_app
|
21
|
-
def python_app_1():
|
22
|
-
import os
|
23
|
-
import threading
|
24
|
-
import time
|
25
|
-
time.sleep(1)
|
26
|
-
return "Hello from PID[{}] TID[{}]".format(os.getpid(), threading.current_thread())
|
27
|
-
|
28
|
-
|
29
|
-
@python_app
|
30
|
-
def bash_app(stdout=None, stderr=None):
|
31
|
-
return 'echo "Hello from $(uname -a)" ; sleep 2'
|
32
|
-
|
33
|
-
|
34
|
-
@pytest.mark.local
|
35
|
-
def test_python(N=2):
|
36
|
-
"""Testing basic python functionality."""
|
37
|
-
|
38
|
-
r1 = {}
|
39
|
-
r2 = {}
|
40
|
-
for i in range(0, N):
|
41
|
-
r1[i] = python_app_1()
|
42
|
-
r2[i] = python_app_2()
|
43
|
-
print("Waiting ....")
|
44
|
-
|
45
|
-
for x in r1:
|
46
|
-
print("python_app_1 : ", r1[x].result())
|
47
|
-
for x in r2:
|
48
|
-
print("python_app_2 : ", r2[x].result())
|
49
|
-
|
50
|
-
return
|
51
|
-
|
52
|
-
|
53
|
-
@pytest.mark.local
|
54
|
-
def test_bash():
|
55
|
-
"""Testing basic bash functionality."""
|
56
|
-
|
57
|
-
import os
|
58
|
-
fname = os.path.basename(__file__)
|
59
|
-
|
60
|
-
x = bash_app(stdout="{0}.out".format(fname))
|
61
|
-
print("Waiting ....")
|
62
|
-
print(x.result())
|
@@ -1,26 +0,0 @@
|
|
1
|
-
from unittest.mock import Mock
|
2
|
-
|
3
|
-
import pytest
|
4
|
-
|
5
|
-
import parsl
|
6
|
-
from parsl.channels.base import Channel
|
7
|
-
from parsl.executors import HighThroughputExecutor
|
8
|
-
from parsl.providers import LocalProvider
|
9
|
-
|
10
|
-
|
11
|
-
@pytest.mark.local
|
12
|
-
def test_dfk_close():
|
13
|
-
|
14
|
-
mock_channel = Mock(spec=Channel)
|
15
|
-
|
16
|
-
# block settings all 0 because the mock channel won't be able to
|
17
|
-
# do anything to make a block exist
|
18
|
-
p = LocalProvider(channel=mock_channel, init_blocks=0, min_blocks=0, max_blocks=0)
|
19
|
-
|
20
|
-
e = HighThroughputExecutor(provider=p)
|
21
|
-
|
22
|
-
c = parsl.Config(executors=[e])
|
23
|
-
with parsl.load(c):
|
24
|
-
pass
|
25
|
-
|
26
|
-
assert mock_channel.close.called
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|