Skip to content

Commit

Permalink
Multitasking (Multi-Processing) [minor] (#28)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <github-actions@github.com>
  • Loading branch information
ric-evans and github-actions committed Apr 28, 2023
1 parent fb99127 commit 6056971
Show file tree
Hide file tree
Showing 5 changed files with 596 additions and 262 deletions.
7 changes: 5 additions & 2 deletions ewms_pilot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
"""Init."""


from .pilot import consume_and_reply, main
from .pilot import FileType, consume_and_reply, main

__all__ = ["consume_and_reply"]
__all__ = [
"consume_and_reply",
"FileType",
]

# version is a human-readable version number.
__version__ = "0.8.0"
Expand Down
1 change: 1 addition & 0 deletions ewms_pilot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class EnvConfig:
# meta
EWMS_PILOT_TASK_TIMEOUT: Optional[int] = None
EWMS_PILOT_QUARANTINE_TIME: int = 0 # seconds
EWMS_PILOT_CONCURRENT_TASKS: int = 1

def __post_init__(self) -> None:
if timeout := os.getenv("EWMS_PILOT_SUBPROC_TIMEOUT"):
Expand Down

0 comments on commit 6056971

Please sign in to comment.