tasq-client-python 0.1.15__py3-none-any.whl → 0.1.16__py3-none-any.whl
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/client.py +8 -0
- tasq_client_python-0.1.16.dist-info/METADATA +11 -0
- tasq_client_python-0.1.16.dist-info/RECORD +8 -0
- {tasq_client_python-0.1.15.dist-info → tasq_client_python-0.1.16.dist-info}/WHEEL +1 -1
- tasq_client_python-0.1.15.dist-info/METADATA +0 -5
- tasq_client_python-0.1.15.dist-info/RECORD +0 -8
- {tasq_client_python-0.1.15.dist-info → tasq_client_python-0.1.16.dist-info}/top_level.txt +0 -0
tasq_client/client.py
CHANGED
|
@@ -268,6 +268,14 @@ class TasqClient:
|
|
|
268
268
|
)
|
|
269
269
|
return QueueCounts(**data)
|
|
270
270
|
|
|
271
|
+
def clear(self):
|
|
272
|
+
"""Deletes the queue and all tasks in it."""
|
|
273
|
+
result = self._post_form("/task/clear", dict())
|
|
274
|
+
if result is True:
|
|
275
|
+
return True
|
|
276
|
+
else:
|
|
277
|
+
raise TasqMisbehavingServerError("failed to clear queue")
|
|
278
|
+
|
|
271
279
|
def __getstate__(
|
|
272
280
|
self,
|
|
273
281
|
):
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
tasq_client/__init__.py,sha256=I0ik-_c0hcVKUgx7QsE3YnoCQyAVMFKKOzoLt-jNFtE,277
|
|
2
|
+
tasq_client/check_type.py,sha256=t_jreI8rf6QWS9Jf105ZvUVbwFe-uL4rMg4kZk6e4cA,2795
|
|
3
|
+
tasq_client/check_type_test.py,sha256=bvhVaO-Bu18aI3J4Kxnb0H27fzDCKkTHVBWhjJMFMis,1433
|
|
4
|
+
tasq_client/client.py,sha256=1f-BBYaiILfziZfzW3J4HOGwAgRbU80pbmlPX2J9wQE,15162
|
|
5
|
+
tasq_client_python-0.1.16.dist-info/METADATA,sha256=Y5auv-WWFODNhED09_NvXXNcVvyq6GDUYGvlzWf-Tx8,168
|
|
6
|
+
tasq_client_python-0.1.16.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
|
|
7
|
+
tasq_client_python-0.1.16.dist-info/top_level.txt,sha256=JUs_FTRfs_ggMu8zusU5CSXgAl-JHhrjMXxuZay-B58,12
|
|
8
|
+
tasq_client_python-0.1.16.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
tasq_client/__init__.py,sha256=I0ik-_c0hcVKUgx7QsE3YnoCQyAVMFKKOzoLt-jNFtE,277
|
|
2
|
-
tasq_client/check_type.py,sha256=t_jreI8rf6QWS9Jf105ZvUVbwFe-uL4rMg4kZk6e4cA,2795
|
|
3
|
-
tasq_client/check_type_test.py,sha256=bvhVaO-Bu18aI3J4Kxnb0H27fzDCKkTHVBWhjJMFMis,1433
|
|
4
|
-
tasq_client/client.py,sha256=Cgr2gMxG9DoUF7bZ9gyR07X_hLfbR6hTamF63wHOgn8,14896
|
|
5
|
-
tasq_client_python-0.1.15.dist-info/METADATA,sha256=Wz3_NQHggP3kx6kGV2woLARhPDiviecU971kgMVM0xU,88
|
|
6
|
-
tasq_client_python-0.1.15.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
7
|
-
tasq_client_python-0.1.15.dist-info/top_level.txt,sha256=JUs_FTRfs_ggMu8zusU5CSXgAl-JHhrjMXxuZay-B58,12
|
|
8
|
-
tasq_client_python-0.1.15.dist-info/RECORD,,
|
|
File without changes
|