Package Products :: Package ZenHub :: Module zenhub :: Class _ZenHubWorklist |
[hide private]
[frames] | no frames]

# Class _ZenHubWorklist

source code

    object --+
             |
            _ZenHubWorklist

Instance Methods | [hide private]
__init__(self) | source code
__getitem__(self, item) | source code
__len__(self) | source code
pop(self) Select a single task to be distributed to a worker. | source code
push(self, job) | source code
append(self, job) | source code

Method Details | [hide private]

### __init__(self) (Constructor) | source code
Overrides: object.__init__ (inherited documentation)

### pop(self) | source code
    Select a single task to be distributed to a worker. We prioritize tasks as follows:
        sendEvents > configuration service calls > applyDataMaps
    To prevent starving any queue in an event storm, we randomize the task selection,
    preferring tasks according to the above priority.