-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Parsl:master' into trackingFileProvenance
- Loading branch information
Showing
41 changed files
with
337 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,5 @@ | ||
from abc import ABCMeta, abstractmethod, abstractproperty | ||
from typing import Tuple | ||
from abc import ABCMeta | ||
|
||
|
||
class Channel(metaclass=ABCMeta): | ||
"""Channels are abstractions that enable ExecutionProviders to talk to | ||
resource managers of remote compute facilities. | ||
For certain resources such as campus clusters or supercomputers at | ||
research laboratories, resource requirements may require authentication. | ||
The only remaining Channel, *LocalChannel*, executes commands locally in a | ||
shell. | ||
Channels provide the ability to execute commands remotely, using the | ||
execute_wait method, and manipulate the remote file system using methods | ||
such as push_file, pull_file and makedirs. | ||
Channels should ensure that each launched command runs in a new process | ||
group, so that providers (such as LocalProvider) which terminate long | ||
running commands using process groups can do so. | ||
""" | ||
|
||
@abstractmethod | ||
def execute_wait(self, cmd: str, walltime: int = 0) -> Tuple[int, str, str]: | ||
''' Executes the cmd, with a defined walltime. | ||
Args: | ||
- cmd (string): Command string to execute over the channel | ||
- walltime (int) : Timeout in seconds | ||
Returns: | ||
- (exit_code, stdout, stderr) (int, string, string) | ||
''' | ||
pass | ||
|
||
@abstractproperty | ||
def script_dir(self) -> str: | ||
''' This is a property. Returns the directory assigned for storing all internal scripts such as | ||
scheduler submit scripts. This is usually where error logs from the scheduler would reside on the | ||
channel destination side. | ||
Args: | ||
- None | ||
Returns: | ||
- Channel script dir | ||
''' | ||
pass | ||
|
||
# DFK expects to be able to modify this, so it needs to be in the abstract class | ||
@script_dir.setter | ||
def script_dir(self, value: str) -> None: | ||
pass | ||
pass |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.