def local_setup(): config = fresh_config() config.executors[0].poll_period = 1 config.executors[0].max_workers = 1 config.executors[ 0].launch_cmd = "executable_that_hopefully_does_not_exist_1030509.py" parsl.load(config)
def local_setup(): global dfk config = fresh_config() config.executors[0].init_blocks = 0 config.executors[0].min_blocks = 0 config.executors[0].max_blocks = 4 dfk = parsl.load(config)
def local_setup(): config = fresh_config() config.executors[0].poll_period = 1 config.executors[0].max_workers = 1 parsl.load(config)
from parsl import python_app import pytest from parsl.tests.configs.htex_local import fresh_config local_config = fresh_config() @python_app def compute_descript(size=1000): import numpy as np x = np.array(list(range(0, size)), dtype=complex).astype(np.float32) return x @pytest.mark.local def test_1480(size=10**6): x = compute_descript(size=size) # This should raise a TypeError: can't pickle memoryview objects with pytest.raises(TypeError): x.result() if __name__ == "__main__": test_1480()