-
Notifications
You must be signed in to change notification settings - Fork 29
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
Make 'chainloop workflow create --name build --project xy --team abc' idempotent #1206
Comments
Thanks, @habnux, for reporting this issue. To me, we have three options here, taking into account that there is an additional implicit requirement to differentiate when there is an actual error vs knowing that there is already a workflow, which is also represented as an error :) a) return different error codes. This is basically what we have today but the user will be able to differentiate if the command actually failed. I am leaning towards option |
This feature will also help here #961 |
I'm wondering if there are other commands (other "create") commands, where we should also enable such flag. Maybe some generic flag for "recoverable" errors ( |
Imo, ignoring errors is never a good choice ... The creation of a clear and comprehensible interface is crucial. |
@habnux so would option offer a specific flag |
Yes option B is okey. Another idea is to use the |
Thanks, @habnux. I think your proposal will require more changes since creation and update might have different required arguments. i.e we will need to make In any case, we want to support |
Today, the CLI returns RC=1 if the workflow already exists for the specified name and project. In the interest of automation, it makes sense that this does not fail. However, a warning could still be displayed.
The text was updated successfully, but these errors were encountered: