Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

fix: reset the pending-resolution error budget on successful checks

Nevo David3587e44d18c7
diff --git a/apps/orchestrator/src/workflows/post-workflows/post.workflow.v1.0.6.ts b/apps/orchestrator/src/workflows/post-workflows/post.workflow.v1.0.6.ts
index cef3d1258..ebb5ca10c 100644
--- a/apps/orchestrator/src/workflows/post-workflows/post.workflow.v1.0.6.ts
+++ b/apps/orchestrator/src/workflows/post-workflows/post.workflow.v1.0.6.ts
@@ -304,6 +304,11 @@ export async function postWorkflowV106({
}
pendingData = result.pendingData;
+
+ // a fully successful iteration proves the platform is reachable: the
+ // error budget bounds consecutive failures, not blips accumulated over
+ // a long upload
+ errorAttempts = 0;
} catch (err) {
const handle = await handleActivityError(err);