-
Notifications
You must be signed in to change notification settings - Fork 14
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
When scrims are created, change the order of db save and pub/sub call #42
Comments
is "pending" (what currently exists) what you meant by:
or is "created" something different you had in mind? also, by "changing the order", that isn't just moving the order of the pubsub call right? do we have to first wait for the pub to finish successfully first, and then update the db? |
@opheeelia remind me to think abt this (don't wanna leave on read)? also #39 might help clarify things (but also i haven't re-read that carefully yet either) |
At a high level: yep - I think "pending" and "created" are synonymous here |
new-and-improved submission process may be a good example (of save in db, add to pubsub, save in db again) |
@opheeelia i just remembered that "pending" means something else, related to autoaccept. a new "created" status seems like the way to go. created --> (pending -->) queued |
merged to master! |
first send games to pub/sub, and then record them in db as “queued”. This would make “queued” more meaningful, and before “queued” we can give games a status of “created” or smthcreate a scrim, save it in the db w status "pending". then send to pub/sub, and then record them in db as “queued”.
this prevents games being tossed onto the pubsub but not actually in the database. also, gives us more tools for debugging too
battlecode/battlecode20#338
The text was updated successfully, but these errors were encountered: