Skip to content

Re-add 'Run' Queue #6

@roddtalebi

Description

@roddtalebi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions