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.
@@ -1,3 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tasq-client-python
3
- Version: 0.1.14
3
+ Version: 0.1.15
4
+ Requires-Dist: requests
@@ -4,5 +4,5 @@ setup(
4
4
  name="tasq-client-python",
5
5
  packages=["tasq_client"],
6
6
  install_requires=["requests"],
7
- version="0.1.14",
7
+ version="0.1.15",
8
8
  )
@@ -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,
@@ -1,3 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tasq-client-python
3
- Version: 0.1.14
3
+ Version: 0.1.15
4
+ Requires-Dist: requests