RSS Feed Checker Timer #534

Open
opened 2025-11-24 22:08:17 +00:00 by Vylpes · 0 comments
Owner

Epic: #528
Story Points:


Implement a scheduled task to check all RSS feeds every 15 minutes

Acceptance Criteria

GIVEN I am a member
AND a channel I can view has a feed subscribed to
WHEN it reaches 15 minutes of the hour (n:00, n:15, n:30, n:45)
THEN each feed in that channel will be fetched and sent

GIVEN I am a member
WHEN a feed fails to be fetched
THEN an error is logged via the AppLogger
AND an error is sent to the channel in an embed

Subtasks

  • Create RssTimer.ts in src/timers/
  • Setup cron job to run every 15 minutes (*/15 * * * *)
  • Fetch all active RSS feeds from database
  • For each feed, fetch and parse new items
  • Compare with lastFetchedItemGuid to identify new entries
  • Post new entries to designated Discord channel
  • Update lastFetchedItemGuid in database after successful post
  • Add error handling and logging for failed feeds
  • Update tests

Notes

No notes

Epic: #528 Story Points: --- Implement a scheduled task to check all RSS feeds every 15 minutes ## Acceptance Criteria GIVEN I am a member AND a channel I can view has a feed subscribed to WHEN it reaches 15 minutes of the hour (n:00, n:15, n:30, n:45) THEN each feed in that channel will be fetched and sent GIVEN I am a member WHEN a feed fails to be fetched THEN an error is logged via the `AppLogger` AND an error is sent to the channel in an embed ## Subtasks - [ ] Create `RssTimer.ts` in `src/timers/` - [ ] Setup cron job to run every 15 minutes (`*/15 * * * *`) - [ ] Fetch all active RSS feeds from database - [ ] For each feed, fetch and parse new items - [ ] Compare with `lastFetchedItemGuid` to identify new entries - [ ] Post new entries to designated Discord channel - [ ] Update `lastFetchedItemGuid` in database after successful post - [ ] Add error handling and logging for failed feeds - [ ] Update tests ## Notes *No notes*
Vylpes added this to the 3.4.0 milestone 2025-11-24 22:17:40 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Blocks
Reference
RabbitLabs/vylbot-app#534
No description provided.