tasq-client-python 0.1.14__tar.gz → 0.1.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/PKG-INFO +2 -1
- {tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/setup.py +1 -1
- {tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/tasq_client/client.py +3 -1
- {tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/tasq_client_python.egg-info/PKG-INFO +2 -1
- {tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/README.md +0 -0
- {tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/setup.cfg +0 -0
- {tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/tasq_client/__init__.py +0 -0
- {tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/tasq_client/check_type.py +0 -0
- {tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/tasq_client/check_type_test.py +0 -0
- {tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/tasq_client_python.egg-info/SOURCES.txt +0 -0
- {tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/tasq_client_python.egg-info/dependency_links.txt +0 -0
- {tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/tasq_client_python.egg-info/requires.txt +0 -0
- {tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/tasq_client_python.egg-info/top_level.txt +0 -0
|
@@ -35,6 +35,8 @@ class QueueCounts:
|
|
|
35
35
|
# server is old enough to not support rate estimation.
|
|
36
36
|
rate: Optional[float] = None
|
|
37
37
|
|
|
38
|
+
modtime: Optional[int] = None
|
|
39
|
+
|
|
38
40
|
|
|
39
41
|
class TasqClient:
|
|
40
42
|
"""
|
|
@@ -255,7 +257,7 @@ class TasqClient:
|
|
|
255
257
|
def counts(self, rate_window: int = 0) -> QueueCounts:
|
|
256
258
|
"""Get the number of tasks in each state within the queue."""
|
|
257
259
|
data = self._get(
|
|
258
|
-
f"/counts?window={rate_window}",
|
|
260
|
+
f"/counts?window={rate_window}&includeModtime=1",
|
|
259
261
|
{
|
|
260
262
|
"pending": int,
|
|
261
263
|
"running": int,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/tasq_client_python.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/tasq_client_python.egg-info/requires.txt
RENAMED
|
File without changes
|
{tasq-client-python-0.1.14 → tasq-client-python-0.1.15}/tasq_client_python.egg-info/top_level.txt
RENAMED
|
File without changes
|