You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it's because when we addded Link, we only had the Python API (not the pipeline.yaml API), and we never worked on ensuring it'd work with pipeline.yaml. Feel free to open a PR!
# Dummy task to wrap success stories exported from hubspot
- name: success-storiessource: ""product: "{{PRODUCTS_DIR}}/success-stories.csv"class: Linkproduct_class: File
Which, isn't terrible but the blank source, the class, and the product_class could all be a little confusing.
I don't think I can get around the source issue without quite a bit of rewiring in the spec task validation (which strictly looks for source without OO/protocol based validation). The product_class issue may be solvable by trying to validate whether product is a pathlike or url-like.
I suppose I could make any string that matches source.lower() == "link" get a class of Link. Maybe that kills two birds with one stone?
With a source attribute, ploomber.tasks.Link cannot be instantiated. Without a source, the task fails validation.
It is not currently possible to use ploomber.tasks.Link in a pipeline spec.
The text was updated successfully, but these errors were encountered: