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

test workflow #574

Merged
merged 1 commit into from
Oct 11, 2023
Merged

test workflow #574

merged 1 commit into from
Oct 11, 2023

Conversation

zzacharo
Copy link
Contributor

No description provided.

@zzacharo zzacharo marked this pull request as ready for review October 11, 2023 15:13
cache_prefix = (
f"{key_prefix}_{current_app.config.get('IMAGE_BUILD_TIMESTAMP')}"
if current_app.config.get("IMAGE_BUILD_TIMESTAMP") is not None
else f"{key_prefix}_{datetime.datetime.now():%Y%m%d_%H%M%S}"
Copy link
Member

@slint slint Oct 11, 2023

Choose a reason for hiding this comment

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

Suggested change
else f"{key_prefix}_{datetime.datetime.now():%Y%m%d_%H%M%S}"
else key_prefix

This is a bit dangerous since you might end up adding many big keys in Redis accidentally.

For local development I would say we can use app.debug or similar to disable caching.

@zzacharo zzacharo merged commit 3dc89d9 into zenodo:master Oct 11, 2023
3 checks passed
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.

2 participants