-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds Azure feed support Including full refactor for multiple feed support with Function reuse, and decoupling the `RssPoller` Function from the Timer trigger to allow multiple input events * Adds article timestamp logging * Improves function READMEs * Optimises `PostHandler` imports
- Loading branch information
Showing
26 changed files
with
295 additions
and
140 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# AwsPostHandler | ||
Uses BeautifulSoup to parse news posts picked up from the `PROCESS_QUEUE_NAME` storage queue, sends the main post content to Azure's text summarization service, and posts the result to Slack (with the `{CLOUD}_SLACK_WEBHOOK` environment variable). | ||
|
||
Expects an input from the queue message in the format `cloud§articleurl`. | ||
|
||
Currently supports: | ||
- AWS articles: https://aws.amazon.com/new/ | ||
- Azure articles: https://azure.microsoft.com/en-gb/updates/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# ProcessFailureHandler | ||
Function to monitor the `-poison` Azure-generated dead-letter queue for processing failures (from the [PostHandler](../PostHandler) Function), and send them to Slack (with `SLACK_FAILURE_WEBHOOK`) when found. |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# RssPoller | ||
Polls the RSS feed given by the `INPUT_QUEUE_NAME` to check for new articles. If any new articles are found, add them to the `PROCESS_QUEUE_NAME` queue for processing by the `PostHandler` function. | ||
|
||
Stores the latest feed and article timestamp for each feed type in an Azure Storage Table `TABLE_NAME` to avoid duplication. | ||
|
||
Expects an input from the queue message in the format `cloud§rssfeedurl` - eg `aws§https://aws.amazon.com/about-aws/whats-new/recent/feed/` |
Oops, something went wrong.