Skip to content

Commit 7930ee2

Browse files
committed
temporarily disable thread leak detection
1 parent 7c53e27 commit 7930ee2

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

reflex/monitoring.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@ def monitor_sync():
4747
action = config.pyleak_action or LeakAction.WARN # pyright: ignore[reportOptionalMemberAccess]
4848

4949
with contextlib.ExitStack() as stack:
50-
stack.enter_context(
51-
no_thread_leaks( # pyright: ignore[reportOptionalCall]
52-
action=action,
53-
grace_period=config.pyleak_thread_grace_period,
54-
)
55-
)
50+
# Thread leak detection has issues with background tasks
51+
# stack.enter_context(
52+
# no_thread_leaks( # pyright: ignore[reportOptionalCall]
53+
# action=action,
54+
# grace_period=config.pyleak_thread_grace_period,
55+
# )
56+
# )
5657
stack.enter_context(
5758
no_event_loop_blocking( # pyright: ignore[reportOptionalCall]
5859
action=action,
@@ -77,12 +78,12 @@ async def monitor_async():
7778
action = config.pyleak_action or LeakAction.WARN # pyright: ignore[reportOptionalMemberAccess]
7879

7980
async with contextlib.AsyncExitStack() as stack:
80-
stack.enter_context(
81-
no_thread_leaks( # pyright: ignore[reportOptionalCall]
82-
action=action,
83-
grace_period=config.pyleak_thread_grace_period,
84-
)
85-
)
81+
# stack.enter_context(
82+
# no_thread_leaks( # pyright: ignore[reportOptionalCall]
83+
# action=action,
84+
# grace_period=config.pyleak_thread_grace_period,
85+
# )
86+
# )
8687
stack.enter_context(
8788
no_event_loop_blocking( # pyright: ignore[reportOptionalCall]
8889
action=action,

0 commit comments

Comments
 (0)