Skip to content

Commit

Permalink
(#28) Ensure sigterm is handled by coverage
Browse files Browse the repository at this point in the history
This way, coverage can collect data before process termination
  • Loading branch information
imranariffin committed Jul 21, 2023
1 parent 1a6a05c commit effeca7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
source = src/
parallel = True
concurrency = multiprocessing
sigterm = True
2 changes: 1 addition & 1 deletion src/aiotaskq/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from .interfaces import ConcurrencyType, IConcurrencyManager, IPubSub
from .pubsub import PubSub

if t.TYPE_CHECKING:
if t.TYPE_CHECKING: # pragma: no cover
from .task import Task

logging.basicConfig(level=logging.INFO)
Expand Down

0 comments on commit effeca7

Please sign in to comment.