@pikku/mongodb 0.12.1 → 0.12.2
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @pikku/mongodb
|
|
2
2
|
|
|
3
|
+
## 0.12.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3e79248: Add setStepChildRunId to workflow service implementations and auto-bootstrap in pikku all
|
|
8
|
+
- Updated dependencies [bb27710]
|
|
9
|
+
- Updated dependencies [a31bc63]
|
|
10
|
+
- Updated dependencies [3e79248]
|
|
11
|
+
- Updated dependencies [b0a81cc]
|
|
12
|
+
- Updated dependencies [6413df7]
|
|
13
|
+
- @pikku/core@0.12.6
|
|
14
|
+
|
|
3
15
|
## 0.12.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -25,6 +25,7 @@ export declare class MongoDBWorkflowService extends PikkuWorkflowService {
|
|
|
25
25
|
setStepScheduled(stepId: string): Promise<void>;
|
|
26
26
|
private insertHistoryRecord;
|
|
27
27
|
private getTimestampFieldForStatus;
|
|
28
|
+
setStepChildRunId(stepId: string, childRunId: string): Promise<void>;
|
|
28
29
|
setStepResult(stepId: string, result: any): Promise<void>;
|
|
29
30
|
setStepError(stepId: string, error: Error): Promise<void>;
|
|
30
31
|
createRetryAttempt(stepId: string, status: 'pending' | 'running'): Promise<StepState>;
|
|
@@ -165,6 +165,14 @@ export class MongoDBWorkflowService extends PikkuWorkflowService {
|
|
|
165
165
|
return 'createdAt';
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
+
async setStepChildRunId(stepId, childRunId) {
|
|
169
|
+
await this.steps.updateOne({ _id: stepId }, {
|
|
170
|
+
$set: {
|
|
171
|
+
childRunId,
|
|
172
|
+
updatedAt: new Date(),
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
}
|
|
168
176
|
async setStepResult(stepId, result) {
|
|
169
177
|
await this.steps.updateOne({ _id: stepId }, {
|
|
170
178
|
$set: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/mongodb",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"author": "yasser.fadl@gmail.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/src/index.js",
|
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
"test": "bash run-tests.sh",
|
|
14
14
|
"test:watch": "bash run-tests.sh --watch",
|
|
15
15
|
"test:coverage": "bash run-tests.sh --coverage",
|
|
16
|
-
"release": "npm run build && npm test"
|
|
16
|
+
"release": "npm run build && npm test",
|
|
17
|
+
"prepublishOnly": "yarn build"
|
|
17
18
|
},
|
|
18
19
|
"peerDependencies": {
|
|
19
|
-
"@pikku/core": "^0.12.
|
|
20
|
+
"@pikku/core": "^0.12.6"
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {
|
|
22
23
|
"mongodb": "^6.12.0"
|
|
@@ -34,6 +34,7 @@ interface WorkflowStepDoc {
|
|
|
34
34
|
status: string
|
|
35
35
|
result: any | null
|
|
36
36
|
error: any | null
|
|
37
|
+
childRunId?: string
|
|
37
38
|
branchTaken: string | null
|
|
38
39
|
retries: number | null
|
|
39
40
|
retryDelay: string | null
|
|
@@ -303,6 +304,18 @@ export class MongoDBWorkflowService extends PikkuWorkflowService {
|
|
|
303
304
|
}
|
|
304
305
|
}
|
|
305
306
|
|
|
307
|
+
async setStepChildRunId(stepId: string, childRunId: string): Promise<void> {
|
|
308
|
+
await this.steps.updateOne(
|
|
309
|
+
{ _id: stepId },
|
|
310
|
+
{
|
|
311
|
+
$set: {
|
|
312
|
+
childRunId,
|
|
313
|
+
updatedAt: new Date(),
|
|
314
|
+
},
|
|
315
|
+
}
|
|
316
|
+
)
|
|
317
|
+
}
|
|
318
|
+
|
|
306
319
|
async setStepResult(stepId: string, result: any): Promise<void> {
|
|
307
320
|
await this.steps.updateOne(
|
|
308
321
|
{ _id: stepId },
|