Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Oct 24, 2024
1 parent c1cd392 commit 58de0e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions phlop/proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
from phlop.procs.runtimer import RunTimer


class ProcessNonZeroExitCode(RuntimeError):
...
class ProcessNonZeroExitCode(RuntimeError): ...


def run(cmd, shell=True, capture_output=True, check=False, print_cmd=True, **kwargs):
Expand Down
9 changes: 5 additions & 4 deletions phlop/testing/parallel_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
from enum import Enum
from multiprocessing import Process, Queue, cpu_count

from phlop.logger import getLogger
from phlop.proc import run

timeout = 60 # seconds - give chance to interrupt
timeout = 60 * 60 # seconds - give chance to interrupt
logger = getLogger(__name__)


class TestCaseFailure(Exception):
...
class TestCaseFailure(Exception): ...


class LoggingMode(Enum):
Expand Down Expand Up @@ -114,7 +115,7 @@ def waiter(queue):
try:
proc = queue.get(timeout=timeout)
except Exception:
print("Queue Exception! - no jobs finished - polling")
logger.info("Queue timeout - polling")
continue

time.sleep(0.01) # don't throttle!
Expand Down
2 changes: 1 addition & 1 deletion sh/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e

PY_FILES=$(find . -name "*.py")

# python3 -m black phlop tests
python3 -m black phlop tests
pylint --errors-only phlop tests
isort phlop tests
python3 -m ruff check phlop tests
Expand Down

0 comments on commit 58de0e4

Please sign in to comment.