@atolis-hq/wake 0.3.27 → 0.3.29
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/dist/src/bootstrap/version.js +1 -1
- package/dist/src/integrations/github/application/inbound-review-signals.js +2 -1
- package/dist/src/integrations/github/application/operator-retry-command.js +11 -0
- package/dist/src/integrations/github/infrastructure/client-reads.js +2 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import { BuiltInResourceKind, ResourceCorrelationRole, ResourceStreamKind, resou
|
|
|
4
4
|
import { WorkStatus } from '../../../work/index.js';
|
|
5
5
|
import { UnknownGitHubIdentity } from '../contracts/vocabulary.js';
|
|
6
6
|
import { commandContext } from './inbound-context.js';
|
|
7
|
+
import { ignoreIneligibleOperatorRetry } from './operator-retry-command.js';
|
|
7
8
|
import { translateGitHubReviewCommand } from './review-command-translator.js';
|
|
8
9
|
export async function applyReviewSignal(input) {
|
|
9
10
|
const { event, journal, resources, work, lookup, adapter, orchestration } = input;
|
|
@@ -116,7 +117,7 @@ async function applyIssueRetrySignal(input) {
|
|
|
116
117
|
const item = await work.get(workflow.workItemId);
|
|
117
118
|
if (item === null || item.deleted || item.frozen || item.state !== WorkStatus.Open)
|
|
118
119
|
continue;
|
|
119
|
-
await orchestration.retryBlockedFailedStage(workflow.workflowInstanceId, commandContext(event));
|
|
120
|
+
await ignoreIneligibleOperatorRetry(() => orchestration.retryBlockedFailedStage(workflow.workflowInstanceId, commandContext(event)));
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
async function applyIssueApprovalSignal(input) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OperatorRetryIneligibleError } from '../../../orchestration/index.js';
|
|
2
|
+
export async function ignoreIneligibleOperatorRetry(retry) {
|
|
3
|
+
try {
|
|
4
|
+
await retry();
|
|
5
|
+
}
|
|
6
|
+
catch (error) {
|
|
7
|
+
if (error instanceof OperatorRetryIneligibleError)
|
|
8
|
+
return;
|
|
9
|
+
throw error;
|
|
10
|
+
}
|
|
11
|
+
}
|