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

[BUG] @app.long_callback has interval set to None #2418

Closed
rymndhng opened this issue Feb 9, 2023 · 0 comments · Fixed by #2426
Closed

[BUG] @app.long_callback has interval set to None #2418

rymndhng opened this issue Feb 9, 2023 · 0 comments · Fixed by #2426

Comments

@rymndhng
Copy link

rymndhng commented Feb 9, 2023

I recently upgraded our dash code (from 2.5.1 to 2.8.0).

I noticed that our long callbacks using the original @app.long_callback decorator is polling our backend many times a second, instead of only once a second.

If I switch over to the new background=True, then the 1 second polling is restored.

I think this is a undesired client regression.

Describe your context
Please provide us your environment, so we can easily reproduce the issue.

  • replace the result of pip list | grep dash below
dash                      2.8.0
dash-core-components      2.0.0
dash-html-components      2.0.0
dash-table                5.0.0

Describe the bug

My frontend application is polling the backend excessively using @app.long_callback when the interval value is unset.

Expected behavior

When a long callback is created using @app.long_callback, the default interval of 1 second should be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant