parsl.providers.LocalProvider¶
-
class
parsl.providers.
LocalProvider
(channel=LocalChannel( envs={}, script_dir=None, userhome='/home/docs/checkouts/readthedocs.org/user_builds/parsl/checkouts/1.0.0/docs' ), nodes_per_block=1, launcher=SingleNodeLauncher(), init_blocks=4, min_blocks=0, max_blocks=10, walltime='00:15:00', worker_init='', cmd_timeout=30, parallelism=1, move_files=None)[source]¶ Local Execution Provider
This provider is used to provide execution resources from the localhost.
- Parameters
min_blocks (int) – Minimum number of blocks to maintain.
max_blocks (int) – Maximum number of blocks to maintain.
parallelism (float) – Ratio of provisioned task slots to active tasks. A parallelism value of 1 represents aggressive scaling where as many resources as possible are used; parallelism close to 0 represents the opposite situation in which as few resources as possible (i.e., min_blocks) are used.
move_files (Optional[Bool]: should files be moved? by default, Parsl will try to figure) – this out itself (= None). If True, then will always move. If False, will never move.
worker_init (str) – Command to be run before starting a worker, such as ‘module load Anaconda; source activate env’.
-
__init__
(channel=LocalChannel( envs={}, script_dir=None, userhome='/home/docs/checkouts/readthedocs.org/user_builds/parsl/checkouts/1.0.0/docs' ), nodes_per_block=1, launcher=SingleNodeLauncher(), init_blocks=4, min_blocks=0, max_blocks=10, walltime='00:15:00', worker_init='', cmd_timeout=30, parallelism=1, move_files=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
([channel, nodes_per_block, …])Initialize self.
cancel
(job_ids)Cancels the jobs specified by a list of job ids
status
(job_ids)Get the status of a list of jobs identified by their ids.
submit
(command, tasks_per_node[, job_name])Submits the command onto an Local Resource Manager job.
Attributes
cores_per_node
Number of cores to provision per node.
current_capacity
Provides the label for this provider
mem_per_node
Real memory to provision per node in GB.
Returns the interval, in seconds, at which the status method should be called.