optuna / optuna-dashboard

Real-time Web Dashboard for Optuna.
https://optuna-dashboard.readthedocs.io/en/latest/
Other
503 stars 83 forks source link

Use boolean state to stop API requests being issued multiple times #817

Closed keisuke-umezawa closed 5 months ago

keisuke-umezawa commented 6 months ago

Contributor License Agreement

This repository (optuna-dashboard) and Goptuna share common code. This pull request may therefore be ported to Goptuna. Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.

Reference Issues/PRs

NA

What does this implement/fix? Explain your changes.

Optuna Dashboard performs near-real-time synchronization using API polling, but the current interval is 10 seconds. If the number of trials is very large, it often does not return within 10 seconds.

codecov[bot] commented 6 months ago

Codecov Report

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

Project coverage is 69.60%. Comparing base (b976fa1) to head (d870a23). Report is 100 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #817 +/- ## ========================================== + Coverage 69.53% 69.60% +0.06% ========================================== Files 35 35 Lines 2367 2375 +8 ========================================== + Hits 1646 1653 +7 - Misses 721 722 +1 ```

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