File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 56
56
if : matrix.os == 'ubuntu-latest' && matrix.py_version == '3.9'
57
57
with :
58
58
token : ${{ secrets.CODECOV_TOKEN }}
59
- fail_ci_if_error : true
59
+ fail_ci_if_error : false
60
60
verbose : true
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ def handle(
75
75
daemon = True ,
76
76
)
77
77
new_process .start ()
78
+ logger .info (f"Process { new_process .name } restarted with pid { new_process .pid } " )
78
79
workers [self .worker_num ] = new_process
79
80
80
81
@@ -163,12 +164,12 @@ def prepare_workers(self) -> None:
163
164
name = f"worker-{ process } " ,
164
165
daemon = True ,
165
166
)
167
+ work_proc .start ()
166
168
logger .info (
167
169
"Started process worker-%d with pid %s " ,
168
170
process ,
169
171
work_proc .pid ,
170
172
)
171
- work_proc .start ()
172
173
self .workers .append (work_proc )
173
174
174
175
def start (self ) -> None : # noqa: C901, WPS213
Original file line number Diff line number Diff line change 1
1
import asyncio
2
2
import logging
3
3
import signal
4
- import sys
5
- from logging .handlers import QueueHandler , QueueListener
6
- from multiprocessing import Queue
7
4
from typing import Any
8
5
9
6
from watchdog .observers import Observer
@@ -120,15 +117,11 @@ def run_worker(args: WorkerArgs) -> None: # noqa: WPS213
120
117
121
118
:param args: CLI arguments.
122
119
"""
123
- logging_queue = Queue (- 1 ) # type: ignore
124
- listener = QueueListener (logging_queue , logging .StreamHandler (sys .stdout ))
125
120
logging .basicConfig (
126
121
level = logging .getLevelName (args .log_level ),
127
122
format = "[%(asctime)s][%(name)s][%(levelname)-7s][%(processName)s] %(message)s" ,
128
- handlers = [QueueHandler (logging_queue )],
129
123
)
130
124
logging .getLogger ("watchdog.observers.inotify_buffer" ).setLevel (level = logging .INFO )
131
- listener .start ()
132
125
logger .info ("Starting %s worker processes." , args .workers )
133
126
134
127
observer = Observer ()
@@ -149,4 +142,3 @@ def run_worker(args: WorkerArgs) -> None: # noqa: WPS213
149
142
logger .info ("Stopping watching files." )
150
143
observer .stop ()
151
144
logger .info ("Stopping logging thread." )
152
- listener .stop ()
You can’t perform that action at this time.
0 commit comments