Added priority to image download queue
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-02-18 13:03:49 +01:00
parent b3f5559fc3
commit 8ddbcc24a7
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ module.exports = Self => {
async function download() { async function download() {
const image = await Self.findOne({ const image = await Self.findOne({
where: {url: {neq: null}, attempts: {lt: maxAttempts}}, where: {url: {neq: null}, attempts: {lt: maxAttempts}},
order: 'attempts, updated' order: 'priority, attempts, updated'
}); });
if (!image) return; if (!image) return;