[BUG]: invalid slurm args cause session to hang

Open
#5,567 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
56/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start at the pyfluent.launch_fluent entry point and trace how scheduler_options are validated and how the SLURM head node is contacted. Reproduce the hang with the provided call using scheduler_headnode="nonsense"; determine the expected handling of invalid arguments and add a regression test. Done means the call fails or reports the invalid setting promptly instead of hanging.

Written by the indexing model from the issue text.

Description

bug
✅ Before submitting
  • I have searched the existing issues and did not find a duplicate.
  • I am using a Python virtual environment.
  • I have confirmed this is a PyFluent issue, not a problem with Ansys Fluent. See the posting issues guide.
📝 Description of the bug

Using incorrect slurm launch args such as below results in python session hanging;
slurm = pyfluent.launch_fluent(certificates_folder='.', scheduler_options={"scheduler": "slurm", "scheduler_headnode": "nonsense"})

🔁 Steps to reproduce
import ansys.fluent.core as pyfluent
slurm = pyfluent.launch_fluent(certificates_folder='.', scheduler_options={"scheduler": "slurm", "scheduler_headnode": "nonsense"})
🎯 Expected behavior

gracefully hadle wrong args

💥 Actual behavior / traceback
Session hangs
📦 PyFluent version

0.41.2

🌀 Ansys Fluent version

2027 R1 (27.1)

🐍 Python version

3.13

💻 Operating system

Windows

📌 Additional context

No response

Dominant language
Python
Stars
550
Forks
86
Avg merge
2d 1h
Merged PRs (30d)
58

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ansys/pyfluent

All issues in ansys/pyfluent

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.