Skip to content

Conversation

@varsill
Copy link
Contributor

@varsill varsill commented Apr 9, 2025

This PR:

  • Improves docs for the handle_crash_group_down
  • Adds new fields for the handle_child_terminated context: crash_initiator, exit_reason and group_name
  • Deprecated usage of nil children group name

@varsill varsill self-assigned this Apr 9, 2025
@varsill varsill added this to Smackore Apr 9, 2025
@varsill varsill moved this to In Progress in Smackore Apr 9, 2025
@varsill varsill marked this pull request as ready for review April 9, 2025 15:52
@varsill varsill requested a review from mat-hek as a code owner April 9, 2025 15:52
@varsill varsill moved this from In Progress to In Review in Smackore Apr 9, 2025
]
| [start_of_stream_received?: boolean()]
| [
group_name: Membrane.Child.group(),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
group_name: Membrane.Child.group(),
group_name: Membrane.Child.group() | nil,

| [start_of_stream_received?: boolean()]
| [
group_name: Membrane.Child.group(),
crash_initiator: Membrane.Child.name(),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
crash_initiator: Membrane.Child.name(),
crash_initiator: Membrane.Child.name() | nil,

optional(:start_of_stream_received?) => boolean()
optional(:start_of_stream_received?) => boolean(),
optional(:exit_reason) => :normal | :shutdown | {:shutdown, term()} | term(),
optional(:group_name) => Membrane.Child.group()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
optional(:group_name) => Membrane.Child.group()
optional(:group_name) => Membrane.Child.group() | nil

@varsill varsill requested a review from mat-hek April 10, 2025 10:20
@varsill varsill changed the title More information in handle_child_terminated More information in handle_child_terminated. Deprecate nil child group name Apr 10, 2025
@varsill varsill merged commit 28b3f19 into master Apr 10, 2025
5 of 6 checks passed
@varsill varsill deleted the varsill/more_information_in_context branch April 10, 2025 12:25
@github-project-automation github-project-automation bot moved this from In Review to Done in Smackore Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants