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

clean templates out of redis when we do update-templates #886

Merged
merged 4 commits into from
Apr 2, 2024

Conversation

terrazoon
Copy link
Contributor

@terrazoon terrazoon commented Apr 1, 2024

Description

When we update the templates in the database by running the update-templates command, we need to also delete the old versions of the templates from redis. They are stored in redis with no TTL so they will persist forever if we don't forcibly clear them.

Security Considerations

N/A

@terrazoon terrazoon self-assigned this Apr 1, 2024
Copy link
Contributor

@ccostino ccostino left a comment

Choose a reason for hiding this comment

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

Thanks, @terrazoon! One quick question on the call to redis_store but otherwise it looks good.

app/commands.py Outdated Show resolved Hide resolved
Copy link
Contributor

@ccostino ccostino left a comment

Choose a reason for hiding this comment

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

Thanks, @terrazoon!

@ccostino
Copy link
Contributor

ccostino commented Apr 1, 2024

D'oh, flake8 warnings! :-)

@ccostino ccostino merged commit 9ecbfd2 into main Apr 2, 2024
5 checks passed
@ccostino ccostino deleted the notify-api-879 branch April 2, 2024 14:02
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.

None yet

2 participants