Merge pull request #3497 from omnivore-app/fix/more-attempts

add more attempts for label and highlight jobs
This commit is contained in:
Jackson Harper
2024-02-06 11:20:17 +08:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@ -129,6 +129,9 @@ export const isContentFetchBlocked = (feedUrl: string) => {
if (feedUrl.startsWith('https://rss.arxiv.org')) {
return true
}
if (feedUrl.startsWith('https://rsshub.app')) {
return true
}
if (feedUrl.startsWith('https://xkcd.com')) {
return true
}

View File

@ -695,7 +695,7 @@ export const bulkEnqueueUpdateLabels = async (data: UpdateLabelsData[]) => {
name: UPDATE_LABELS_JOB,
data: d,
opts: {
attempts: 3,
attempts: 6,
priority: 1,
backoff: {
type: 'exponential',
@ -720,7 +720,7 @@ export const enqueueUpdateHighlight = async (data: UpdateHighlightData) => {
try {
return queue.add(UPDATE_HIGHLIGHT_JOB, data, {
attempts: 3,
attempts: 6,
priority: 1,
backoff: {
type: 'exponential',