{"record":{"id":"a009f64b7ba24a0a","repo":"windmill-labs/windmill","slug":"stale-flows-locks-found-you-may-want-to-update-th","errorCode":null,"errorMessage":"Stale flows locks found, you may want to update them using 'wmill generate-metadata' before pushing:","messagePattern":"Stale flows locks found, you may want to update them using 'wmill generate-metadata' before pushing:","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/sync/sync.ts","lineNumber":5191,"sourceCode":"        \"Stale scripts metadata found, you may want to update them using 'wmill generate-metadata' before pushing:\",\n      );\n    }\n    for (const stale of staleScripts) {\n      if (autoRegenerate) {\n        log.info(`  ${stale}`);\n      } else {\n        log.warn(stale);\n      }\n    }\n\n    log.info(\"\");\n  }\n\n  if (staleFlows.length > 0) {\n    if (autoRegenerate) {\n      log.info(\"Auto-regenerated locks for stale flows:\");\n    } else {\n      log.warn(\n        \"Stale flows locks found, you may want to update them using 'wmill generate-metadata' before pushing:\",\n      );\n    }\n    for (const stale of staleFlows) {\n      if (autoRegenerate) {\n        log.info(`  ${stale}`);\n      } else {\n        log.warn(stale);\n      }\n    }\n    log.info(\"\");\n  }\n\n  if (staleApps.length > 0) {\n    if (autoRegenerate) {\n      log.info(\"Auto-regenerated locks for stale apps:\");\n    } else {\n      log.warn(","sourceCodeStart":5173,"sourceCodeEnd":5209,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/cli/src/commands/sync/sync.ts#L5173-L5209","documentation":"Post-push advisory in `wmill sync push`: flow locks were detected as stale (flow definition changed since its lock was generated) and autoRegenerate was off. The following lines list the affected flow paths; the push itself completed.","triggerScenarios":"Thrown at cli/src/commands/sync/sync.ts:5191 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run 'wmill generate-metadata' to refresh flow locks","Push again after regeneration so remotes carry current locks"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}