Skip to content

Get() hangs when used with pqid #189

@w1am

Description

@w1am
from persistqueue import SQLiteQueue

q = SQLiteQueue(path="/tmp/queue", auto_commit=True)

q.put(item={ "pqid": 100, "name": "william" })

x = q.get(id={ "pqid": 100, "name": "william" })
pprint(x)

After playing around more with this I noticed that even though pqid was set in the put method. it returns the latest sequence number of the sql table i.e 1 instead of 100

I tried setting timeout=0 but it raises Empty error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions