feat(wfe-core): root_workflow_id, SharedVolume, configurable shell, StepExecutionContext.definition

This commit is contained in:
2026-04-09 15:44:59 +01:00
parent 7214d0ab5d
commit 2aaf3c16c9
14 changed files with 137 additions and 3 deletions

View File

@@ -59,6 +59,11 @@ impl WorkflowRepository for InMemoryPersistenceProvider {
};
let mut stored = instance.clone();
stored.id = id.clone();
// Fall back to UUID when the caller didn't assign a human name, so
// name-based lookups work (the UUID is always unique).
if stored.name.is_empty() {
stored.name = id.clone();
}
self.workflows.write().await.insert(id.clone(), stored);
Ok(id)
}