mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 22:38:26 +00:00
perf: trim web auto-reply test cleanup backoff
This commit is contained in:
@@ -33,7 +33,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
@@ -77,7 +77,7 @@ const _makeSessionStore = async (
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
@@ -77,7 +77,7 @@ const _makeSessionStore = async (
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
@@ -79,7 +79,7 @@ const makeSessionStore = async (
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
@@ -77,7 +77,7 @@ const _makeSessionStore = async (
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
@@ -82,7 +82,7 @@ const _makeSessionStore = async (
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
@@ -81,7 +81,7 @@ const _makeSessionStore = async (
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
@@ -77,7 +77,7 @@ const _makeSessionStore = async (
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
@@ -78,7 +78,7 @@ const makeSessionStore = async (
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
@@ -77,7 +77,7 @@ const _makeSessionStore = async (
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
@@ -77,7 +77,7 @@ const _makeSessionStore = async (
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ const rmDirWithRetries = async (dir: string): Promise<void> => {
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
@@ -79,7 +79,7 @@ const makeSessionStore = async (
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ const _makeSessionStore = async (
|
|||||||
? String((err as { code?: unknown }).code)
|
? String((err as { code?: unknown }).code)
|
||||||
: null;
|
: null;
|
||||||
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
if (code === "ENOTEMPTY" || code === "EBUSY" || code === "EPERM") {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 25));
|
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
Reference in New Issue
Block a user