mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Some more logging
This commit is contained in:
parent
0936942378
commit
ec765c0f5c
1 changed files with 4 additions and 0 deletions
|
|
@ -75,6 +75,10 @@ const feedFetchFailedRedisKey = (feedUrl: string) =>
|
|||
const isFeedBlocked = async (feedUrl: string, redisClient: Redis) => {
|
||||
const key = feedFetchFailedRedisKey(feedUrl)
|
||||
try {
|
||||
console.log('checking if feed is blocked:', {
|
||||
redisClient,
|
||||
status: redisClient.status,
|
||||
})
|
||||
const result = await redisClient.get(key)
|
||||
// if the feed has failed to fetch more than certain times, block it
|
||||
const maxFailures = parseInt(process.env.MAX_FEED_FETCH_FAILURES ?? '10')
|
||||
|
|
|
|||
Loading…
Reference in a new issue