Skip to content

Commit 4325c07

Browse files
committed
clear_queue
1 parent 4075bbf commit 4325c07

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "dean_utils"
7-
version="0.0.25"
7+
version="0.0.26"
88
authors=[
99
{ name="Dean MacGregor", email="[email protected]"}
1010
]

src/dean_utils/utils/az_utils.py

+11
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,17 @@ async def delete_message(
143143
return task
144144

145145

146+
async def clear_messages(
147+
queue,
148+
**kwargs,
149+
):
150+
async with AIO_SERVE.get_queue_client(
151+
queue, message_encode_policy=TextBase64EncodePolicy()
152+
) as aio_client:
153+
task = await aio_client.clear_messages(**kwargs)
154+
return task
155+
156+
146157
class async_abfs:
147158
def __init__(self, connection_string=os.environ["Synblob"]):
148159
self.connection_string = connection_string

0 commit comments

Comments
 (0)