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

Allow user defined product and task classes #1149

Open
marr75 opened this issue Dec 4, 2023 · 1 comment · May be fixed by #1150
Open

Allow user defined product and task classes #1149

marr75 opened this issue Dec 4, 2023 · 1 comment · May be fixed by #1150

Comments

@marr75
Copy link
Contributor

marr75 commented Dec 4, 2023

I expected that I could define products and tasks of my own and then refer to them by their dotted path.

Unfortunately, they won't be validated or loaded. For example, I attempted to make a user defined version of "Link" that could be instantiated from a yaml spec and the error is:

ValueError: Error validating Task spec (class field): 'some_common_module.task_classes.Link' is not a valid Task class name
@edublancas
Copy link
Contributor

@marr75 this makes sense. I see you are already working on a PR. feel free to request a review when ready!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants