Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update globus_compute.py #3765

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion parsl/executors/globus_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

import copy
from concurrent.futures import Future
from typing import Any, Callable, Dict
from typing import Any, Callable, Dict, List, Optional

import typeguard

from parsl.data_provider.staging import Staging
from parsl.errors import OptionalModuleMissing
from parsl.executors.base import ParslExecutor
from parsl.utils import RepresentationMixin
Expand Down Expand Up @@ -40,6 +41,8 @@ def __init__(
self,
executor: Executor,
label: str = 'GlobusComputeExecutor',
storage_access: Optional[List[Staging]] = None,
working_dir: Optional[str] = None,
):
"""
Parameters
Expand All @@ -52,6 +55,12 @@ def __init__(

label:
a label to name the executor

storage_access:
a list of staging providers that will be used for file staging

working_dir:
The working dir to be used for file staging
"""
if not _globus_compute_enabled:
raise OptionalModuleMissing(
Expand All @@ -64,6 +73,8 @@ def __init__(
self.resource_specification = self.executor.resource_specification
self.user_endpoint_config = self.executor.user_endpoint_config
self.label = label
self.storage_access = storage_access
self.working_dir = working_dir

def start(self) -> None:
""" Start the Globus Compute Executor """
Expand Down
Loading