-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ContainerOp alternative #4713
Comments
There are also lightweight python components created using
Can you describe the problems you're seeing?
Can you please help me understand this request. ComponentSpec has a schema and also when you load a component from URL, file or inline text, the component structure is validated. Is there something missing?
It's possible to construct an instance of the |
@Ark-kun you might want to check more context in the slack discussion: https://kubeflow.slack.com/archives/CE10KS9M4/p1604333477307400 |
Comments on #4644 might be relevant. |
There was a great example for component spec python class in #3748 (comment). |
In our case, we are coming from a "legacy" environment where we have all our pipeline code in a large container, so unfortunately we are not lightweight anymore.
We are not using Notebooks at the moment, so I cannot judge how that would work. However, when you have pylint/mypy check your code for type safety it helps if also your
It is validated when you load them, but having validation/autocomplete while you are writing specs is very helpful
I guess this is close to what could work. If I take the (a reduced) example from the link @Bobgy posted, I can identify a case however that would be caught by my editor tooling with the
vs
My editor tooling would find that |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Also agree with this, maybe my editor (vscode) isn't loading components right, but having the ability to use autocomplete around operations is pivotal to developer experience. I would suggest not deprecating container_op unless necessary |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@Ark-kun , you sugested using |
I'm also seeing this warning:
Do I simply ignore and just proceed? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it. |
Per request of @Bobgy:
Currently, when using
ContainerOp
you will get the following warning:The alternatives requires you to specify your
ContainerOp
instance as eitheryaml
orjson
if you want to use it inline. This option however lacks the editor/type checking support that you would get when using the Python basedContainerOp
.Proposals:
ContainerOp
instance in a future proof wayThe text was updated successfully, but these errors were encountered: