Skip bad URLs in the deliver queue, and also print the URL itself
ci/woodpecker/tag/ociImageTag Pipeline was successful Details

This commit is contained in:
Natty 2024-09-21 21:14:34 +02:00
parent da6de92b5a
commit eb355cf51d
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
1 changed files with 2 additions and 3 deletions

View File

@ -20,9 +20,8 @@ export default async (job: Bull.Job<DeliverJobData>) => {
try {
host = new URL(job.data.to).host;
} catch (e) {
logger.error(`Invalid URL: ${e}`);
await job.discard();
throw e;
logger.error(`${e} for input: ${job.data.to}`);
return "skip";
}
const puny = toPuny(host);