Fix delivery handling
ci/woodpecker/tag/ociImageTag Pipeline was successful Details

This commit is contained in:
Natty 2024-12-19 20:16:05 +01:00
parent c9feae3a28
commit 96093d515e
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
2 changed files with 3 additions and 0 deletions

View File

@ -132,6 +132,7 @@ async function rpcCall<D, T>(method: string, data: D): Promise<T> {
const timeout = setTimeout(() => {
client.off("close", clearAndReject);
client.off("error", clearAndReject);
client.removeAllListeners(`mag-data:${currentSerial}`);
reject(new Error("Promise timeout"))
}, 60000);

View File

@ -24,6 +24,8 @@ export default async (job: Bull.Job<DeliverJobData>) => {
const puny = toPuny(host);
// Drop old deliveries
if (typeof job.data.content !== "string") return "skip";
if (await shouldSkipInstance(puny)) return "skip";
try {