kjaymiller / kjaymiller/Az-Queue-Tweeter
Adds auto queue creation if the queue doesn't exist
- Dominant language
- Python
- Stars
- 1
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Azure Storage queue SDK will fail to create the message if the queue doesn't exist. We can pass a
Currently we let the SDK create the message in its normal flow
```python
def queue_message(self, message):
self.queue.send_message(message)
```
We should create a check to ensure the queue exists and create it if it does.
```python
from azure.core.exceptions import ResourceExistsError
def queue_message(self, message):
try:
queue.create_queue()
except ResourceExistsError:
pass
queue.send_message(message)
```
Contributor guide
Research direction
Start by locating the queue_message method shown in the issue and inspect how its queue object is configured. Check the Azure Storage Queue SDK behavior and existing tests, if present; done means a missing queue is created before the message is sent without breaking the existing path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python
- Domain
- backend, cloud
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100