Skip to content

REFACTOR: Scheduler logic - #6398

Closed
SMoraisAnsys wants to merge 14 commits into
mainfrom
refactor/scheduler-logic
Closed

SMoraisAnsys wants to merge 14 commits into
mainfrom
refactor/scheduler-logic

Conversation

@SMoraisAnsys

Copy link
Copy Markdown
Collaborator

Description

The main idea is to split the submission attributes into two classes. On for the resources where there are a few checks performed and adjustement performed if needed (only triggered when writting the AREG file). If the user provided non aligned values, the class raises an exception when trying to write the AREG file.

Issue linked

Related to #6316

Checklist

  • I have tested my changes locally.
  • I have added necessary documentation or updated existing documentation.
  • I have followed the coding style guidelines of this project.
  • I have added appropriate tests (unit, integration, system).
  • I have reviewed my changes before submitting this pull request.
  • I have linked the issue or issues that are solved by the PR if any.
  • I have agreed with the Contributor License Agreement (CLA).

Devin and others added 14 commits June 27, 2025 14:31
- Use Job_Settings_Template.txt as a template
  for the Job_Settings.areg.
- The Job_Settings will be managed in the class
  JobSettings
- Use Job_Settings_Template.txt as a template
  for the Job_Settings.areg.
- The Job_Settings will be managed in the class
  JobSettings
- Update settings.py to use HPC settings in scheduler.py
- Start deprecating lsf-specific settings in settings.py
- Automatically retrieve the executable. Added method 'get_aedt_exe()' in scheduler.py
- Added docstring for JobSettings
- Updated some default Job values.
- Add self-consistency for dependent parameters (tasks, cores, nodes)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
- Add _hpc_method property according to guidance from development.
- Add logic to update _hpc_method depending on updated properties.
Ensure consistency among cores_per_task,
num_cores and num_tasks.
@SMoraisAnsys
SMoraisAnsys requested a review from a team as a code owner July 14, 2025 07:50
@ansys-reviewer-bot

Copy link
Copy Markdown
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

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.

1 participant