ansys / ansys/pyfluent

Add pre-validation for various slurm option as client hangs if launch fails

Open
#3,754 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
497
Forks
77
Avg merge
22h 37m
Merged PRs (30d)
45

Description

```
>>> import ansys.fluent.core as pyfluent
>>> slurm = pyfluent.launch_fluent(scheduler_options={"scheduler": "slurm", "scheduler_headnode": "nonsense"}, ui_mode="no_gui_or_graphics")
ssh: Could not resolve hostname nonsense: Name or service not known
>>> exit() # hangs
```

This issue was originally reported in PyConsole (Fluent bug 1115063).

Contributor guide

Open the contributing guide

Research direction

Start from pyfluent.launch_fluent and its scheduler_options handling, using the reproduced Slurm launch with scheduler_headnode set to "nonsense" as the failure case. Trace how the failed SSH launch is handled; done means invalid Slurm options are rejected before launch and exiting the client no longer hangs.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.