Skip to content

Comments

feat: add Process.set_label/1 to Broadway stages#363

Merged
josevalim merged 1 commit intodashbitco:mainfrom
yordis:yordis/fixes-353
Oct 1, 2025
Merged

feat: add Process.set_label/1 to Broadway stages#363
josevalim merged 1 commit intodashbitco:mainfrom
yordis:yordis/fixes-353

Conversation

@yordis
Copy link
Contributor

@yordis yordis commented Oct 1, 2025

fixes #353

Signed-off-by: Yordis Prieto yordis.prieto@gmail.com

@yordis yordis marked this pull request as ready for review October 1, 2025 18:10
@yordis yordis force-pushed the yordis/fixes-353 branch 2 times, most recently from cebc1d8 to 690ff30 Compare October 1, 2025 18:12
@josevalim
Copy link
Member

Thank you! We will need to bump the Elixir requirement to v1.17, which seems quite steep. We should probably do a function_exported? check before.

@coveralls
Copy link

coveralls commented Oct 1, 2025

Pull Request Test Coverage Report for Build 40ef5c67c0f53a584e7e2b0d9916398bd95bf662-PR-363

Details

  • 8 of 8 (100.0%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 93.228%

Totals Coverage Status
Change from base Build d32d30deb64dc4481f2743f6a0d8606299690046: 0.2%
Covered Lines: 647
Relevant Lines: 694

💛 - Coveralls

@yordis yordis force-pushed the yordis/fixes-353 branch 4 times, most recently from 6326b67 to 1983a52 Compare October 1, 2025 18:30
Comment on lines 4 to 15
# TODO: Remove this module once we require Elixir 1.17+.
# Process.set_label/1 was added in Elixir 1.17.0.

if function_exported?(Process, :set_label, 1) do
def set_label(label) do
Process.set_label(label)
end
else
def set_label(_label) do
:ok
end
end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if you prefer another way, let me know

@yordis yordis force-pushed the yordis/fixes-353 branch 2 times, most recently from 733bf0d to c2dbc20 Compare October 1, 2025 18:48
@yordis yordis requested a review from josevalim October 1, 2025 18:49
@yordis
Copy link
Contributor Author

yordis commented Oct 1, 2025

@josevalim ready to CR

fixes dashbitco#353

Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
@josevalim josevalim merged commit 8c66164 into dashbitco:main Oct 1, 2025
2 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@yordis yordis deleted the yordis/fixes-353 branch October 1, 2025 19:01
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.

Process labels

3 participants