-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from maxfischer2781/feature/bulk_htcondor
Bulk Executor and HTCondor Bulk Operations
- Loading branch information
Showing
9 changed files
with
511 additions
and
78 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
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,7 +1,20 @@ | ||
from typing import Optional | ||
from typing_extensions import Protocol | ||
from abc import ABCMeta, abstractmethod | ||
|
||
|
||
class CommandResult(Protocol): | ||
stdout: str | ||
stderr: str | ||
exitcode: int | ||
|
||
|
||
class Executor(metaclass=ABCMeta): | ||
@abstractmethod | ||
async def run_command(self, command): | ||
async def run_command( | ||
self, command: str, stdin_input: Optional[str] = None | ||
) -> CommandResult: | ||
""" | ||
Run ``command`` in a shell and provide the result | ||
""" | ||
return NotImplemented |
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.