open-austin / azure-indigent-defense

4 stars 2 forks source link

add queue scraper function in order to prevent function timeouts #16

Closed zimzoom closed 1 year ago

zimzoom commented 1 year ago

This adds a second scraping function message-queue-scraper that is triggered by a new message on the queue cases-to-scrape. This second scraping function is necessary due to the 10 minute limit on Azure functions -- previously, when the first function http-scraper hit a day that contained 100 cases, it would time out. Now, that first function http-scraper passes off the scraping work to the second function message-queue-scraper when it hits a large number of cases.

Changes in this PR: