Skip to content

Commit

Permalink
Fix p4lang#77 Limit parallel jobs used during command 'p4studio inter…
Browse files Browse the repository at this point in the history
…active'

Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
  • Loading branch information
jafingerhut committed Feb 19, 2025
1 parent ce6ab36 commit 4798fe8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions p4studio/interactive/interactive_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from config.configuration_manager import current_configuration_manager
from interactive.input_validation import validate_path_to_write, validate_kernel_headers_input, validate_file_to_read
from profile.profile import Profile
from profile.profile_command import execute_plan
from profile.profile_command import execute_plan, calculate_jobs_from_available_cpus_and_memory
from profile.profile_execution_plan import ProfileExecutionPlan
from system.check_system_utils import print_multiple_checks
from system.checks import get_initial_checks
Expand Down Expand Up @@ -166,7 +166,8 @@ def create_default_profile() -> Profile:


def build_sde(context: Context, profile: Profile) -> None:
plan = ProfileExecutionPlan(profile, None, os.cpu_count())
jobs = calculate_jobs_from_available_cpus_and_memory()
plan = ProfileExecutionPlan(profile, None, jobs)
execute_plan(context, plan)


Expand Down

0 comments on commit 4798fe8

Please sign in to comment.