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

Fix bug with --node-count arg for worker. #701

Conversation

robertbartel
Copy link
Contributor

Fixes a small bug found during testing of #675, but an independent issue unto itself.

The changes allows for the Launcher object to determine the correct value for the --node-count arg passed to job worker entrypoint script when starting services for a job. Prior to this change, the Launcher obtains this value simply by counting allocations. With this change, it will correctly use the sum of the cpu_count values for all allocations for the job.

Fixing bug determining the correct value for the --node-count arg passed
to job worker entrypoint script, which was counting allocations rather
than the number of CPUs across the allocations.
@robertbartel robertbartel added bug Something isn't working maas MaaS Workstream labels Aug 16, 2024
Copy link
Contributor

@christophertubbs christophertubbs left a comment

Choose a reason for hiding this comment

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

You had me at "one assignment per line"

@christophertubbs christophertubbs merged commit 8fad377 into NOAA-OWP:master Aug 16, 2024
8 checks passed
@robertbartel robertbartel deleted the b/fix_job_node_count_handling/main branch August 19, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maas MaaS Workstream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants