Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

docs(wrc): state the limit of the run-lane NetworkPolicy retry requeue

Alfredo Lopezb7ed49d7166b
diff --git a/workflow-recipes/package-lock.json b/workflow-recipes/package-lock.json
index 99dc6227d..e6b088cff 100644
--- a/workflow-recipes/package-lock.json
+++ b/workflow-recipes/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "workload-recipes-controller",
- "version": "0.1.383",
+ "version": "0.1.384",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "workload-recipes-controller",
- "version": "0.1.383",
+ "version": "0.1.384",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@aws-sdk/client-s3": "^3.1009.0",
diff --git a/workflow-recipes/package.json b/workflow-recipes/package.json
index 96b61c9dc..f5d5f6ea1 100644
--- a/workflow-recipes/package.json
+++ b/workflow-recipes/package.json
@@ -1,6 +1,6 @@
{
"name": "workload-recipes-controller",
- "version": "0.1.383",
+ "version": "0.1.384",
"description": "Workload Recipes Controller (WRC) - WorkloadRecipe lifecycle management and MCP server interface",
"main": "dist/main.js",
"engines": {
diff --git a/workflow-recipes/src/reconciler/workflowRecipeReconciler.ts b/workflow-recipes/src/reconciler/workflowRecipeReconciler.ts
index 83235633e..2925e2382 100644
--- a/workflow-recipes/src/reconciler/workflowRecipeReconciler.ts
+++ b/workflow-recipes/src/reconciler/workflowRecipeReconciler.ts
@@ -2286,10 +2286,20 @@ export class WorkflowRecipeReconciler {
// 30s credential-refresh floor. Polling cannot advance it, and it has no
// deadline that bounds a fixed-interval loop.
//
- // A NetworkPolicy left unwritten because it is being deleted requeues on
- // the backoff path too: a running workflow has no periodic pass, and
- // nothing bounds how long the deletion takes. An ownership conflict does
- // not requeue; it waits for an operator and is published as a condition.
+ // A NetworkPolicy left pending a retry (terminating, deleted before the
+ // replace, or conflicted twice) requeues on the backoff path too: nothing
+ // bounds how long the deletion or the contention lasts. An ownership
+ // conflict does not requeue; it waits for an operator and is published as
+ // a condition.
+ //
+ // Known limit: the requeued pass reaches the run-lane apply only while
+ // the run is still initializing or recovering. Once it is running, the
+ // in-progress and active short-circuits above return before
+ // WorkflowReconciler.reconcile(), so the policy is rewritten by the next
+ // pass that reaches it (the next run or a crash recovery). The 30s
+ // runtime HTTP egress refresh reapplies only coord-to-wrc and
+ // snippet-runner-egress, and only when the spec gives them public HTTP
+ // egress.
requeueAfterMs: result.skipStatusPatch
? TRANSIENT_REQUEUE_BASE_MS
: result.phase === 'deploying' ||
diff --git a/workflow-recipes/src/workflow/workflowReconciler.ts b/workflow-recipes/src/workflow/workflowReconciler.ts
index 3a279fbb9..814b76493 100644
--- a/workflow-recipes/src/workflow/workflowReconciler.ts
+++ b/workflow-recipes/src/workflow/workflowReconciler.ts
@@ -820,8 +820,10 @@ export interface WorkflowReconcileResult {
/** Eager host identity is ready, but prompt policy awaits operator action. */
pluginWorkloadSdkPolicyPending?: boolean
/**
- * A NetworkPolicy this pass had to leave unwritten because it is being
- * deleted. Nothing else re-runs a steady pass, so the caller requeues.
+ * A NetworkPolicy this pass left unwritten and wants retried: it is being
+ * deleted, it vanished before the replace, or the replace conflicted twice.
+ * The caller requeues. The requeued pass reaches this apply only if the
+ * recipe reconciler does not short-circuit it (see its requeue comment).
*/
networkPolicyRetryPending?: boolean
}