-
Notifications
You must be signed in to change notification settings - Fork 2
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
Restructure redis queue entries #116
Comments
In particular, this could be helpful for adding specifying what git branch to score against, likely as part of #103. |
The reason that the redis queue entries weren't extensible was to make sure that duplicate requests would be deduped when added to the queue. JSON serialization doesn't guarantee that equal objects result in equal string values. Just something to think about. |
This should enable us to pass extra data between the worker and the scorer.
@derpferd, from my testing, it seems that if no extra data is passed (and with |
Yes, I think that would work. I am sure you can also explicitly say how to handle whitespace as well. Another thing to keep in mind is the With these two things in mind it shouldn't be a problem. |
Currently our redis queue entries are of the form
{team_id}-{attack_id}
. This has worked, but it's pretty inflexible, and that's going to cause some problems for #103 in particular. Rather than the custom encoding/decoding logic we have, we should replace this with something extensible. JSON would be an easy possibility:The text was updated successfully, but these errors were encountered: