Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #1814 update_content for debug off #2106

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

rohitdash08
Copy link

This PR fix #1814

Description:
Fixes issue with update_content() behavior inconsistency in debug vs. non-debug modes.

Summary of Changes:

  1. Introduced a queue-based system (UpdateQueue) to batch and control the frequency of updates for partials.

  2. Implemented two batch intervals:
    STREAM_MODE_BATCH_INTERVAL for smooth updates during streaming (0.05s).
    STANDARD_BATCH_INTERVAL for non-streaming updates (0.2s).

  3. Added thread safety using locks to ensure consistent updates and prevent race conditions.

  4. Created a new method _process_updates() to handle queued updates and apply only the most recent change.

  5. Added a force_update() method for forced updates when necessary.

Impact:
This fix addresses the "chunky" updates observed when debug mode is off, ensuring smoother and more consistent content updates across all modes.

taipy/gui/partial.py Show resolved Hide resolved
@FredLL-Avaiga
Copy link
Member

can you update your branch and fix the checks ?

@FredLL-Avaiga
Copy link
Member

I've updated your branch

Copy link
Member

@FredLL-Avaiga FredLL-Avaiga left a comment

Choose a reason for hiding this comment

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

Can you write some test so that we can understand where you're getting to ?

taipy/gui/partial.py Outdated Show resolved Hide resolved
taipy/gui/partial.py Outdated Show resolved Hide resolved
taipy/gui/partial.py Outdated Show resolved Hide resolved
taipy/gui/partial.py Show resolved Hide resolved
taipy/gui/partial.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gui: Back-End 💥Malfunction Addresses an identified problem. 🟧 Priority: High Must be addressed as soon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[🐛 BUG] Update content behaves differently with debug mode on/off
2 participants