Skip to content

Commit 201f9e6

Browse files
shards and table
1 parent a9ec560 commit 201f9e6

File tree

4 files changed

+1122
-9
lines changed

4 files changed

+1122
-9
lines changed

src/cli.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,11 @@ const maestroCommand = program
309309
'--ignore-checksum-check',
310310
'Skip checksum verification and always upload the app.',
311311
)
312+
.option(
313+
'--shard-split <number>',
314+
'Number of chunks to split flows into (by default each flow runs on its own session).',
315+
(val) => parseInt(val, 10),
316+
)
312317
// Authentication
313318
.option('--api-key <key>', 'TestingBot API key.')
314319
.option('--api-secret <secret>', 'TestingBot API secret.')
@@ -367,6 +372,7 @@ const maestroCommand = program
367372
downloadArtifacts: args.downloadArtifacts,
368373
artifactsOutputDir: args.artifactsOutputDir,
369374
ignoreChecksumCheck: args.ignoreChecksumCheck,
375+
shardSplit: args.shardSplit,
370376
});
371377
const credentials = await Auth.getCredentials({
372378
apiKey: args.apiKey,

src/models/maestro_options.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export default class MaestroOptions {
5555
private _downloadArtifacts: boolean;
5656
private _artifactsOutputDir?: string;
5757
private _ignoreChecksumCheck: boolean;
58+
private _shardSplit?: number;
5859

5960
public constructor(
6061
app: string,
@@ -82,6 +83,7 @@ export default class MaestroOptions {
8283
downloadArtifacts?: boolean;
8384
artifactsOutputDir?: string;
8485
ignoreChecksumCheck?: boolean;
86+
shardSplit?: number;
8587
},
8688
) {
8789
this._app = app;
@@ -108,6 +110,7 @@ export default class MaestroOptions {
108110
this._downloadArtifacts = options?.downloadArtifacts ?? false;
109111
this._artifactsOutputDir = options?.artifactsOutputDir;
110112
this._ignoreChecksumCheck = options?.ignoreChecksumCheck ?? false;
113+
this._shardSplit = options?.shardSplit;
111114
}
112115

113116
public get app(): string {
@@ -206,6 +209,10 @@ export default class MaestroOptions {
206209
return this._ignoreChecksumCheck;
207210
}
208211

212+
public get shardSplit(): number | undefined {
213+
return this._shardSplit;
214+
}
215+
209216
public getMaestroOptions(): MaestroRunOptions | undefined {
210217
const opts: MaestroRunOptions = {};
211218

0 commit comments

Comments
 (0)