• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ReactiveX / RxPY / 43770352736
94%

Build:
DEFAULT BRANCH: master
Ran 15 Nov 2026 10:38PM UTC
Jobs 1
Files 430
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Nov 2026 10:37PM UTC coverage: 93.846% (+0.002%) from 93.844%
43770352736

push

github

web-flow
fix: restart dead EventLoopScheduler thread (#828)

* fix: prevent ScheduledObserver fault from killing EventLoopScheduler thread

When an on_next callback throws through observe_on, ScheduledObserver.run()
catches the exception but re-raises it, which kills the EventLoopScheduler
thread. Any other observers sharing the same scheduler stop receiving
messages, and queued closures leak memory.

Three fixes:

1. ScheduledObserver.run(): route exceptions to on_error instead of
   re-raising. The faulted observer stops (has_faulted=True) but the
   scheduler thread survives.

2. EventLoopScheduler._has_thread(): check thread.is_alive() in addition
   to thread is not None. A dead thread object is truthy, so the old
   check reported the thread as alive after it crashed.

3. EventLoopScheduler._ensure_thread(): check is_alive() so a dead
   thread gets replaced on the next schedule() call.

* fix: let observer errors propagate and restart a dead event loop thread

Address review: ScheduledObserver no longer calls on_error after an
observer callback throws (Rx Design Guidelines 6.4). It clears its
queue, marks itself faulted and re-raises, exactly as on master.

EventLoopScheduler does not catch or log the error either, so it
propagates out of the event loop thread. The scheduler now detects
that the thread has died and starts a new one on the next schedule()
call, instead of queueing work that never runs.

* chore: remove redundant tests

28 of 29 new or added lines in 2 files covered. (96.55%)

27054 of 28828 relevant lines covered (93.85%)

0.94 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.99
-1.01% reactivex/scheduler/eventloopscheduler.py
Jobs
ID Job ID Ran Files Coverage
1 43770352736.1 15 Nov 2026 10:38PM UTC 430
93.85
GitHub Action Run
Source Files on build 43770352736
  • Tree
  • List 430
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f73bd11c on github
  • Prev Build on master (#43769409074)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc