Skip to content

Commit 0fb79d2

Browse files
committed
feat(deploy): default retry policy for operations
1 parent 70a6323 commit 0fb79d2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/deploy/src/clusterChanges/applyCouchbaseClusterChanges.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,6 @@ export async function applyCouchbaseClusterChanges(
104104
await retry(() => operation(cluster, apiConfig, change as never, resolvedOptions), {
105105
retries: 3,
106106
delay: 5_000,
107-
retryIf: (err) => {
108-
if (err instanceof Error && hasOwn(err, 'errors') && Array.isArray(err.errors)) {
109-
return err.errors.some(
110-
(e) => hasOwn(e, 'code') && (e as { code: number }).code === 5000
111-
);
112-
}
113-
114-
return false;
115-
},
116107
});
117108
}
118109
}

0 commit comments

Comments
 (0)