Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blueprints: Add step option "optional" to indicate they're optional (next steps allowed to continue if they fail) #45

Open
eliot-akira opened this issue Aug 8, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@eliot-akira
Copy link

eliot-akira commented Aug 8, 2023

What

Currently when running Blueprint steps, if any step fails the entire thing stops with an error. In some situations it's helpful to allow optional or "fail-able" steps.

The feature was suggested in the context of plugin and theme install steps (#605), but it seems useful if we can implement for any step type.

@adamziel
Copy link
Collaborator

adamziel commented Jan 31, 2024

Reposting from WordPress/wordpress-playground#254 (that I just cosed as a duplicate):

question around the writeFile playground step. I have a URL that I don’t know whether it exists. If it does, I want to write it to a file, if it doesn’t, that’s ok. Currently the blueprint stops at that writeFile step
A fallback behavior for resources would be really there useful, e.g. „onError”: „stop”, „onError”: „ignore”, or even "onError": { "resource: "url", ... }


(that comment seems more relevant to WordPress/blueprints#50 actually)

@adamziel adamziel transferred this issue from WordPress/wordpress-playground Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants