parsl 2024.8.5__py3-none-any.whl → 2024.8.19__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.
Files changed (48) hide show
  1. parsl/channels/__init__.py +1 -4
  2. parsl/channels/oauth_ssh/oauth_ssh.py +12 -4
  3. parsl/channels/ssh/ssh.py +17 -7
  4. parsl/channels/ssh_il/ssh_il.py +13 -3
  5. parsl/dataflow/dflow.py +1 -1
  6. parsl/executors/high_throughput/executor.py +18 -27
  7. parsl/executors/high_throughput/interchange.py +4 -0
  8. parsl/executors/high_throughput/mpi_executor.py +23 -2
  9. parsl/executors/high_throughput/mpi_prefix_composer.py +5 -4
  10. parsl/executors/taskvine/executor.py +2 -0
  11. parsl/executors/workqueue/executor.py +2 -0
  12. parsl/monitoring/db_manager.py +36 -49
  13. parsl/monitoring/monitoring.py +9 -5
  14. parsl/monitoring/remote.py +4 -4
  15. parsl/monitoring/router.py +16 -18
  16. parsl/providers/__init__.py +0 -4
  17. parsl/providers/ad_hoc/ad_hoc.py +6 -2
  18. parsl/tests/configs/local_adhoc.py +2 -2
  19. parsl/tests/test_htex/test_resource_spec_validation.py +40 -0
  20. parsl/tests/test_htex/test_zmq_binding.py +2 -1
  21. parsl/tests/test_mpi_apps/test_bad_mpi_config.py +29 -14
  22. parsl/tests/test_mpi_apps/test_mpi_mode_enabled.py +16 -8
  23. parsl/tests/test_mpi_apps/test_mpiex.py +2 -3
  24. parsl/tests/test_mpi_apps/test_resource_spec.py +39 -41
  25. parsl/tests/test_providers/test_local_provider.py +6 -5
  26. parsl/version.py +1 -1
  27. {parsl-2024.8.5.data → parsl-2024.8.19.data}/scripts/interchange.py +4 -0
  28. {parsl-2024.8.5.dist-info → parsl-2024.8.19.dist-info}/METADATA +5 -3
  29. {parsl-2024.8.5.dist-info → parsl-2024.8.19.dist-info}/RECORD +36 -47
  30. parsl/configs/ad_hoc.py +0 -38
  31. parsl/tests/configs/ad_hoc_cluster_htex.py +0 -35
  32. parsl/tests/configs/htex_ad_hoc_cluster.py +0 -26
  33. parsl/tests/configs/swan_htex.py +0 -43
  34. parsl/tests/integration/test_channels/test_scp_1.py +0 -45
  35. parsl/tests/integration/test_channels/test_ssh_1.py +0 -40
  36. parsl/tests/integration/test_channels/test_ssh_errors.py +0 -46
  37. parsl/tests/integration/test_channels/test_ssh_file_transport.py +0 -41
  38. parsl/tests/integration/test_channels/test_ssh_interactive.py +0 -24
  39. parsl/tests/manual_tests/test_ad_hoc_htex.py +0 -49
  40. parsl/tests/manual_tests/test_oauth_ssh.py +0 -13
  41. parsl/tests/test_mpi_apps/test_mpi_mode_disabled.py +0 -47
  42. {parsl-2024.8.5.data → parsl-2024.8.19.data}/scripts/exec_parsl_function.py +0 -0
  43. {parsl-2024.8.5.data → parsl-2024.8.19.data}/scripts/parsl_coprocess.py +0 -0
  44. {parsl-2024.8.5.data → parsl-2024.8.19.data}/scripts/process_worker_pool.py +0 -0
  45. {parsl-2024.8.5.dist-info → parsl-2024.8.19.dist-info}/LICENSE +0 -0
  46. {parsl-2024.8.5.dist-info → parsl-2024.8.19.dist-info}/WHEEL +0 -0
  47. {parsl-2024.8.5.dist-info → parsl-2024.8.19.dist-info}/entry_points.txt +0 -0
  48. {parsl-2024.8.5.dist-info → parsl-2024.8.19.dist-info}/top_level.txt +0 -0
@@ -1,47 +0,0 @@
1
- from typing import Dict
2
-
3
- import pytest
4
-
5
- import parsl
6
- from parsl import python_app
7
- from parsl.tests.configs.htex_local import fresh_config
8
-
9
- EXECUTOR_LABEL = "MPI_TEST"
10
-
11
-
12
- def local_config():
13
- config = fresh_config()
14
- config.executors[0].label = EXECUTOR_LABEL
15
- config.executors[0].max_workers_per_node = 1
16
- config.executors[0].enable_mpi_mode = False
17
- return config
18
-
19
-
20
- @python_app
21
- def get_env_vars(parsl_resource_specification: Dict = {}) -> Dict:
22
- import os
23
-
24
- parsl_vars = {}
25
- for key in os.environ:
26
- if key.startswith("PARSL_"):
27
- parsl_vars[key] = os.environ[key]
28
- return parsl_vars
29
-
30
-
31
- @pytest.mark.local
32
- def test_only_resource_specs_set():
33
- """Confirm that resource_spec env vars are set while launch prefixes are not
34
- when enable_mpi_mode = False"""
35
- resource_spec = {
36
- "num_nodes": 4,
37
- "ranks_per_node": 2,
38
- }
39
-
40
- future = get_env_vars(parsl_resource_specification=resource_spec)
41
-
42
- result = future.result()
43
- assert isinstance(result, Dict)
44
- assert "PARSL_DEFAULT_PREFIX" not in result
45
- assert "PARSL_SRUN_PREFIX" not in result
46
- assert result["PARSL_NUM_NODES"] == str(resource_spec["num_nodes"])
47
- assert result["PARSL_RANKS_PER_NODE"] == str(resource_spec["ranks_per_node"])