@dionlarson/playwright-orchestrator-dynamo-db 1.3.9 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,6 +20,7 @@ export declare class DynamoDbAdapter extends Adapter {
20
20
  saveTestRun(params: SaveTestRunParams): Promise<void>;
21
21
  initialize(): Promise<void>;
22
22
  dispose(): Promise<void>;
23
+ cleanupStaleTests(runId: string, staleMinutes: number): Promise<number>;
23
24
  getReportData(runId: string): Promise<TestRunReport>;
24
25
  private getConfig;
25
26
  private getNextTestByStatus;
@@ -64,6 +64,13 @@ export class DynamoDbAdapter extends Adapter {
64
64
  async dispose() {
65
65
  this.client.destroy();
66
66
  }
67
+ async cleanupStaleTests(runId, staleMinutes) {
68
+ // DynamoDB adapter uses delete-and-recreate pattern for test claiming.
69
+ // Tests are atomically claimed by deleting them, so there's no "Ongoing" status to clean up.
70
+ // If a worker crashes mid-test, the test is lost (not stuck in Ongoing).
71
+ console.log('DynamoDB adapter does not track Ongoing status - cleanup is a no-op');
72
+ return 0;
73
+ }
67
74
  async getReportData(runId) {
68
75
  const config = await this.getConfig(runId);
69
76
  const tests = await this.queryAllTests(runId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dionlarson/playwright-orchestrator-dynamo-db",
3
- "version": "1.3.9",
3
+ "version": "1.4.0",
4
4
  "keywords": [],
5
5
  "author": "Rostyslav Kudrevatykh",
6
6
  "license": "Apache-2.0",