coleifer / huey

a little task queue for python
https://huey.readthedocs.io/
MIT License
5.21k stars 370 forks source link

task priorities, sqlite, and immediate mode #741

Closed ChrisJefferson closed 1 year ago

ChrisJefferson commented 1 year ago

There are a couple of sentences in the docs about sqlite and priorities, namely:

"Task prioritization is fully supported by SqliteHuey and the in-memory storage layer used when Immediate mode is enabled"

"SqliteHuey and the in-memory storage used when immediate-mode is enabled have full support for task priorities."

I wasn't sure if this meant

(Sqlite and the in-memory stoage) with immediate mode, or:

Sqlite and (the in-memory storage with immediate mode)

I now believe (and I might be wrong!) that sqlite always supports priority. In the case perhaps change to something like the following, to clarify? (there is possibly shorter things which are clear, but seeing as redis is already always discussed seperately, seems clearest to me to just also seperate out sqlite and the in-memory storage?)

"Task prioritization is fully supported by SqliteHuey. Task priorization is also fully supported by the in-memory storage layer used when Immediate mode is enabled"

and:

"* SqliteHuey supports task priorities.

coleifer commented 1 year ago

Sqlite always supports priorities under all circumstances.

As does the built-in in-memory mode used for testing.

I will fix the wording thanks for your question.

ChrisJefferson commented 1 year ago

Thank you, this completely clarifies the text for me.