Enqueue new feeds at front

This commit is contained in:
Jackson Harper
2024-01-18 14:34:07 +08:00
parent ee142d3d7c
commit fb28d7b3d1
2 changed files with 8 additions and 2 deletions

View File

@ -660,7 +660,9 @@ export const enqueueRssFeedFetch = async (
)}_${stringToHash(JSON.stringify(subscriptionGroup.userIds.sort()))}`
if (redisDataSource.workerRedisClient) {
let job = await queueRSSRefreshFeedJob(jobid, payload)
let job = await queueRSSRefreshFeedJob(jobid, payload, {
priority: 'high',
})
if (!job || !job.id) {
throw 'unable to queue rss-refresh-feed-job, job did not enqueue'
}