Fix delivery handling
ci/woodpecker/tag/ociImageTag Pipeline was successful
Details
ci/woodpecker/tag/ociImageTag Pipeline was successful
Details
This commit is contained in:
parent
c9feae3a28
commit
96093d515e
|
@ -132,6 +132,7 @@ async function rpcCall<D, T>(method: string, data: D): Promise<T> {
|
||||||
const timeout = setTimeout(() => {
|
const timeout = setTimeout(() => {
|
||||||
client.off("close", clearAndReject);
|
client.off("close", clearAndReject);
|
||||||
client.off("error", clearAndReject);
|
client.off("error", clearAndReject);
|
||||||
|
client.removeAllListeners(`mag-data:${currentSerial}`);
|
||||||
reject(new Error("Promise timeout"))
|
reject(new Error("Promise timeout"))
|
||||||
}, 60000);
|
}, 60000);
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,8 @@ export default async (job: Bull.Job<DeliverJobData>) => {
|
||||||
|
|
||||||
const puny = toPuny(host);
|
const puny = toPuny(host);
|
||||||
|
|
||||||
|
// Drop old deliveries
|
||||||
|
if (typeof job.data.content !== "string") return "skip";
|
||||||
if (await shouldSkipInstance(puny)) return "skip";
|
if (await shouldSkipInstance(puny)) return "skip";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue