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

export server_threads var #104

Merged
merged 2 commits into from
Apr 19, 2023
Merged

export server_threads var #104

merged 2 commits into from
Apr 19, 2023

Conversation

chrstnbwnkl
Copy link
Member

Fixes #103

First tried to initialize server_threads in helpers.sh and overwrite it in run.sh, but didn't seem to work, so export it is I guess? 🤷‍♂️

Copy link
Member

@nilsnolde nilsnolde left a comment

Choose a reason for hiding this comment

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

Weird.. are the tests defining that env var then? I can see it’s only on docker-compose really, which is of course stupid and I wonder why it took so long for someone to notice that😘

scripts/run.sh Outdated
@@ -42,6 +42,8 @@ echo ""
if [[ -z $server_threads ]]; then
server_threads=$(nproc)
fi
export server_threads
Copy link
Member

Choose a reason for hiding this comment

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

We can export it right away when assigning it

@chrstnbwnkl
Copy link
Member Author

We test using server_threads=1

@nilsnolde nilsnolde merged commit 7615064 into master Apr 19, 2023
@nilsnolde nilsnolde deleted the cb-fix-server-threads branch April 19, 2023 06:57
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.

server_threads variable not available in configure_valhalla script
2 participants