Automatic style fix

This commit is contained in:
robot-clickhouse 2024-07-26 16:59:41 +00:00
parent d8318fc428
commit f276be829b

View File

@ -22,7 +22,9 @@ STATE_MAP = {
def run_with_timeout(func, args, timeout): def run_with_timeout(func, args, timeout):
for _ in range(5): for _ in range(5):
state = multiprocessing.Value("i", -1) state = multiprocessing.Value("i", -1)
process = multiprocessing.Process(target=func, args=args, kwargs={"state": state}) process = multiprocessing.Process(
target=func, args=args, kwargs={"state": state}
)
process.start() process.start()
process.join(timeout) process.join(timeout)