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

Signed-off-by: Imran Ariffin <ariffin.imran@gmail.com>
  • Loading branch information
imranariffin committed Jul 22, 2023
1 parent 1a6a05c commit f46bf4b
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 f46bf4b

Please sign in to comment.