Skip to content

chore: Increase start_timeout and link it to Fluent's Idle timeout#5147

Draft
prmukherj wants to merge 10 commits into
mainfrom
maint/increase_idle_timeout
Draft

chore: Increase start_timeout and link it to Fluent's Idle timeout#5147
prmukherj wants to merge 10 commits into
mainfrom
maint/increase_idle_timeout

Conversation

@prmukherj

Copy link
Copy Markdown
Collaborator

…ut for Fluent.

Context

What was the situation or problem before this change?

Change Summary

What changes were made?

Rationale

Why was this approach taken?

Impact

What parts of the system or workflows are affected?

Copilot AI review requested due to automatic review settings May 20, 2026 14:06
@github-actions github-actions Bot added the enhancement Improve any current implemented feature label May 20, 2026
@codacy-production

codacy-production Bot commented May 20, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@prmukherj prmukherj changed the title chore: Increase start_timeout and link it to Preferences -> IdleTimeo… chore: Increase start_timeout and link it to Fluent's Idle timeout May 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR increases the default timeouts used when launching/connecting to Fluent and adds a launch-time “idle timeout” guard intended to auto-terminate Fluent if PyFluent never successfully connects (helping avoid stale Fluent processes after failed connections).

Changes:

  • Increase the default Fluent launch/connect timeout from 60s to 180s (config + docs + standalone launcher default).
  • In the standalone launcher, inject -setenv=FLUENT_MAX_IDLE_TIMEOUT=<minutes> based on start_timeout to guard against stale processes on failed connection.
  • After a successful connection, attempt to reset the Fluent Preferences -> General -> IdleTimeout to 0.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
src/ansys/fluent/core/module_config.py Updates the default launch_fluent_timeout from 60s to 180s.
src/ansys/fluent/core/launcher/standalone_launcher.py Raises start_timeout default to 180s; injects an idle-timeout guard; resets IdleTimeout after connection.
src/ansys/fluent/core/launcher/launcher.py Updates launch_fluent() docstring to reflect the new 180s default outside Slurm.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/ansys/fluent/core/launcher/standalone_launcher.py
Comment thread src/ansys/fluent/core/launcher/standalone_launcher.py Outdated
Comment thread src/ansys/fluent/core/launcher/standalone_launcher.py Outdated
Comment thread src/ansys/fluent/core/launcher/standalone_launcher.py Outdated
Comment thread src/ansys/fluent/core/launcher/standalone_launcher.py Outdated
Copilot AI review requested due to automatic review settings May 20, 2026 14:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Comment thread src/ansys/fluent/core/launcher/standalone_launcher.py
Comment thread src/ansys/fluent/core/launcher/standalone_launcher.py
Comment thread src/ansys/fluent/core/launcher/standalone_launcher.py
Copilot AI review requested due to automatic review settings May 20, 2026 16:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.

Comment thread src/ansys/fluent/core/launcher/standalone_launcher.py
Comment thread src/ansys/fluent/core/launcher/standalone_launcher.py
Comment thread src/ansys/fluent/core/launcher/standalone_launcher.py
Comment thread src/ansys/fluent/core/launcher/standalone_launcher.py
Comment thread doc/changelog.d/5147.maintenance.md

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Comment thread src/ansys/fluent/core/launcher/standalone_launcher.py
Comment thread src/ansys/fluent/core/launcher/standalone_launcher.py
Comment thread src/ansys/fluent/core/launcher/launcher.py
@prmukherj prmukherj linked an issue May 22, 2026 that may be closed by this pull request
3 tasks
@github-actions github-actions Bot added maintenance General maintenance of the repo (libraries, cicd, etc) dependencies Related to dependencies labels Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Related to dependencies enhancement Improve any current implemented feature maintenance General maintenance of the repo (libraries, cicd, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default value of "start_timeout" not sufficient in many scenarios

3 participants