Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Updated agent initialization to allow running in worker threads when config.worker_threads.enabled is true #1817

Merged
merged 2 commits into from
Oct 17, 2023

Conversation

bizob2828
Copy link
Member

To restore behavior for some customers wanting to run in worker threads, they can set config.worker_threads.enabled to true in config of set NEW_RELIC_WORKER_THREADS_ENABLED to true. I tried to be clear and proivde warnings that running in worker threads is not officially supported. It seems as though some customers may find it valuable but we want to default to disable running in worker threads and allow customers to opt-in.

@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

Merging #1817 (77bad75) into main (99e5792) will increase coverage by 0.00%.
Report is 9 commits behind head on main.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1817   +/-   ##
=======================================
  Coverage   96.83%   96.83%           
=======================================
  Files         199      199           
  Lines       38959    38983   +24     
=======================================
+ Hits        37724    37748   +24     
  Misses       1235     1235           
Flag Coverage Δ
integration-tests-16.x 78.90% <83.72%> (-0.01%) ⬇️
integration-tests-18.x 79.20% <83.72%> (+0.01%) ⬆️
integration-tests-20.x 79.20% <83.72%> (+<0.01%) ⬆️
unit-tests-16.x 91.43% <100.00%> (+<0.01%) ⬆️
unit-tests-18.x 91.41% <100.00%> (+<0.01%) ⬆️
unit-tests-20.x 91.41% <100.00%> (+<0.01%) ⬆️
versioned-tests-16.x 73.06% <100.00%> (+<0.01%) ⬆️
versioned-tests-18.x 73.06% <100.00%> (+0.01%) ⬆️
versioned-tests-20.x 73.07% <100.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
index.js 100.00% <100.00%> (ø)
lib/config/default.js 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mrickard mrickard self-assigned this Oct 16, 2023
index.js Outdated Show resolved Hide resolved
mrickard
mrickard previously approved these changes Oct 16, 2023
@bizob2828 bizob2828 merged commit a39f0ef into newrelic:main Oct 17, 2023
27 checks passed
This was referenced Oct 23, 2023
@bizob2828 bizob2828 deleted the worker-threads-config branch August 28, 2024 18:11
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.

2 participants