kjaymiller / kjaymiller/31DaysofNeurodivergenceTweets

Add Logic to check queue count

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently the queue is set to just pop the entry out of the stack but this will raise errors if the stack is empty. Instead it can check for an empty queue and then exit gracefully or perform another task (Like a thank you message or a request to send more posts)

```
msg = queue.receive_messages().next() # TODO: Add Logic to check queue count
```

https://github.com/kjaymiller/31DaysofNeurodivergenceTweets/blob/3846691957b4eeebf56b8aab729f6cbb1dd514a4/TimerTrigger/__init__.py#L12

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in TimerTrigger/__init__.py at the queue.receive_messages().next() call and inspect how the Azure queue is configured and consumed. Reproduce the empty-queue case, then verify the chosen graceful behavior without raising an exception; no test file is mentioned in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
backend, cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.