We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6766720 commit 8f1086cCopy full SHA for 8f1086c
internal-packages/testcontainers/src/setup.ts
@@ -68,7 +68,8 @@ export async function setupBackgroundWorker(
68
prisma: PrismaClient,
69
environment: AuthenticatedEnvironment,
70
taskIdentifier: string | string[],
71
- machineConfig?: MachineConfig
+ machineConfig?: MachineConfig,
72
+ retryOptions?: RetryOptions
73
) {
74
const worker = await prisma.backgroundWorker.create({
75
data: {
@@ -86,7 +87,7 @@ export async function setupBackgroundWorker(
86
87
const tasks: BackgroundWorkerTask[] = [];
88
89
for (const identifier of taskIdentifiers) {
- const retryConfig: RetryOptions = {
90
+ const retryConfig: RetryOptions = retryOptions ?? {
91
maxAttempts: 3,
92
factor: 1,
93
minTimeoutInMs: 100,
0 commit comments