ansys / pyhps

A Python client for Ansys HPC Platform Services (HPS)
https://hps.docs.pyansys.com/
MIT License
0 stars 0 forks source link

Use request.Session() in a 'with' block #424

Closed davel94 closed 2 months ago

davel94 commented 2 months ago

Description

Without the 'with' block the count of open files go up on each authentication

Tested on pcluster comparing with scaler without the change. open file count remained at 3500 after running over the weekend.

Checklist

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.75%. Comparing base (9ed2317) to head (2a5dd72).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #424 +/- ## ======================================= Coverage 93.75% 93.75% ======================================= Files 64 64 Lines 2435 2435 ======================================= Hits 2283 2283 Misses 152 152 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.