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

fix illegal values in redis jobs #2957

Merged
merged 1 commit into from
Aug 19, 2023
Merged

Conversation

hughrun
Copy link
Contributor

@hughrun hughrun commented Aug 18, 2023

  1. populate_streams_get_audience

    This function tries to set status_reply_parent_privacy as None if there is no status.reply_parent, but None is not a valid value for privacy. This doesn't appear to be breaking anything but does result in a lot of error messages in the logs. I have set the value to equal the original status.privacy - this won't really have any effect since it only happens when there is no parent, however we could set this to "direct" if we want to be highly cautious.

  2. rerank_user_task

    Again, this doesn't seem to caused major issues, but is throwing errors if the user in question no longer exists for some reason. This commit checks whether user exists before attempting to rerank.

1. populate_streams_get_audience

This tries to set status_reply_parent_privacy as None if there is no status.reply_parent, but None is not a valid value for privacy.
This doesn't appear to be  breaking anything but does result in a lot of error messages in the logs.
I have set this to equal the original status.privacy - this won't realy have any effect since it only happens when there is no parent,
however we could set this to "direct" if we want to be highly cautious.

2. rerank_user_task

Again, this doesn't seem to caused major issues, but is throwing errors if the user in question no longer exists for some reason.
This commit checks whether 'user' exists before attempting to rerank.
@mouse-reeve mouse-reeve merged commit 0f8da5b into bookwyrm-social:main Aug 19, 2023
10 checks passed
@hughrun hughrun deleted the redisfix branch August 20, 2023 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants