Skip to content

Handle a few cases of unchecked Task.Supervisor.start_child returns#3132

Merged
jonatanklosko merged 3 commits intolivebook-dev:mainfrom
QuinnWilton:fix/task-supervisor-errors
Feb 10, 2026
Merged

Handle a few cases of unchecked Task.Supervisor.start_child returns#3132
jonatanklosko merged 3 commits intolivebook-dev:mainfrom
QuinnWilton:fix/task-supervisor-errors

Conversation

@QuinnWilton
Copy link
Contributor

These are all very minor issues that came up while I was doing some static analysis. They probably won't show up too often in practice, so I don't know whether these are cases you're concerned with, but I thought I'd open the PRs to flag the issues anyway!

@CLAassistant
Copy link

CLAassistant commented Feb 10, 2026

CLA assistant check
All committers have signed the CLA.

@jonatanklosko
Copy link
Member

Thanks for the PR! Given that we really don't expect those start_child calls to fail, I would rather just match {:ok, _pid} = ... directly, and if it ever actually fails we can revisit.

The return value of start_child was silently discarded. Match
{:ok, _pid} so a failure crashes visibly instead of being lost.
The return value of start_child was silently discarded. Match
{:ok, _pid} so a failure crashes visibly instead of being lost.
The return value of start_child was silently discarded. Match
{:ok, _pid} so a failure crashes visibly instead of being lost.
@QuinnWilton QuinnWilton force-pushed the fix/task-supervisor-errors branch from cb33fd1 to 8945762 Compare February 10, 2026 12:29
@QuinnWilton
Copy link
Contributor Author

Sounds good! I just pushed up the simplified code :)

Copy link
Member

@jonatanklosko jonatanklosko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@QuinnWilton perfect, thanks!

The CI failures are unrelated, I will fix those :)

@jonatanklosko jonatanklosko merged commit 56ecd47 into livebook-dev:main Feb 10, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants