-
Notifications
You must be signed in to change notification settings - Fork 0
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
Re-add 'Run' Queue #6
Comments
WHYYYYY would they do that??? but okay fine |
More knowledge https://stackoverflow.com/questions/12223335/sqlalchemy-creating-vs-reusing-a-session/12223711
|
See original issue #3
copy pasted from there...
Future work:
Better understand Cloud SQL to see how much of a 'delay' we can expect before a second sql-client instance can read the point added by the first sql-client instance. From that, decide whether we can re-add the 'run' queue functionality or if it has to be tossed completely.
Problem:
The 'main' sql-client would add points to the table and to the 'main' queue; if a worker immediately picks it off the 'main' queue and adds it to the 'run' queue so it can change states on the table from state='queue' to ='running', often the 'run' sql-client won't see any point in the table with that hash...likely because it isn't seeing a 'new-enough' vision of the table.
We even added 'sleep' statements so that it would check the table again for the point after a quick rest, but that didn't improve. Something else is going on with how these instances communicate with the server and what view they see that we don't know about.
I suppose the easy solution would be to have the same 'main' client also be the 'run' client but with thousands of nodes, that might make a bottleneck.
The text was updated successfully, but these errors were encountered: