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

Flush Redis before loading static data #2249

Closed
sainak opened this issue Jun 6, 2024 · 7 comments · Fixed by #2572
Closed

Flush Redis before loading static data #2249

sainak opened this issue Jun 6, 2024 · 7 comments · Fixed by #2572
Assignees

Comments

@sainak
Copy link
Member

sainak commented Jun 6, 2024

Remove the existing keys of care_static_data before proceeding with the loading of static data in redis

@sainak sainak changed the title Flush redis befor loading static data Flush Redis before loading static data Jun 6, 2024
@kushalbhana
Copy link

Can you tell me where could I locate this issue?

@JohnLu2004
Copy link
Contributor

Hello @sainak, may I work on this issue?

@github-project-automation github-project-automation bot moved this to Triage in Care Oct 17, 2024
@rithviknishad rithviknishad moved this from Triage to Up Next in Care Oct 17, 2024
@JohnLu2004
Copy link
Contributor

Thanks for assigning me. I'll look into it the moment I get off work!

@ghost
Copy link

ghost commented Oct 21, 2024

Hey @JohnLu2004 If you don't have time for this , can I try out ?

@JohnLu2004
Copy link
Contributor

Hey @JohnLu2004 If you don't have time for this , can I try out ?

Thanks for the looking out for me, but I'm working on it. In terms of cpu usage and speed, it takes a while for processes to run in the dev container as opposed to outside of it. I'm working on it locally on my fork 😁

@JohnLu2004
Copy link
Contributor

I assume the keys that I need to delete only get created when/after the app has been used for some time?

  • After make up, there don't seem to be any keys. I found that we had 0 keys by making a python program that takes all the keys.
  • I also used the redis-cli and got back an empty array.

With this info, I assume that you'd like me to instead update the app so that every single time we try to load static data from redis, I delete the keys that have "care_static_data" as a prefix?

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

Successfully merging a pull request may close this issue.

4 participants