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

[ENG-4100]reduce lock expiration time to 1s #4507

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Conversation

ElijahAhianyo
Copy link
Contributor

@ElijahAhianyo ElijahAhianyo commented Dec 10, 2024

Reduce the Redis lock expiration time to 1s so users are guaranteed to get the lock expiration error when they run processes that block the main thread.

@ElijahAhianyo ElijahAhianyo reopened this Dec 10, 2024
@ElijahAhianyo ElijahAhianyo changed the title reduce lock expiration time to 1s [ENG-4100]reduce lock expiration time to 1s Dec 10, 2024
Copy link

linear bot commented Dec 10, 2024

@ElijahAhianyo ElijahAhianyo marked this pull request as ready for review December 10, 2024 16:22
@masenf masenf merged commit 6e3e632 into main Dec 10, 2024
70 checks passed
@masenf masenf deleted the elijah/reduce_lock_time branch December 10, 2024 17:15
@benedikt-bartscher
Copy link
Contributor

benedikt-bartscher commented Dec 10, 2024

This seems to have introduced ci flakiness

FAILED tests/units/test_state.py::test_state_manager_contend[redis] - reflex.utils.exceptions.LockExpiredError: Lock expired for token 2e09a593-fbff-4c74-ba16-9c15738747ea_tests___units___test_state____test_state.tests___units___test_state____child_state2 while processing. Consider increasing `app.state_manager.lock_expiration` (currently 1000) or use `@rx.event(background=True)` decorator for long-running tasks.

https://github.com/reflex-dev/reflex/actions/runs/12261807689/job/34209663455?pr=4441

Maybe we should increase the lock time for CI?

masenf added a commit that referenced this pull request Dec 10, 2024
masenf added a commit that referenced this pull request Dec 10, 2024
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 this pull request may close these issues.

3 participants