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

TaskRegistry refresh #97

Open
kels271828 opened this issue Aug 26, 2024 · 0 comments
Open

TaskRegistry refresh #97

kels271828 opened this issue Aug 26, 2024 · 0 comments

Comments

@kels271828
Copy link
Member

If someone is calling onemod through Python instead of the command line, and they call run_pipeline multiple times in the same script or notebook, they can get an error like:

NodeDependencyNotExistError: Upstream node, 1822966715896605700, for node, 743241294815203502, does not exist in the dag.Check that every task has been added to the workflow and is in the correct order.

This is because the TaskRegistry.registry dictionary is saved on the class, and tasks from the previous workflow are not removed before running the next workflow. Simple solution is to reset the registry before running a workflow.

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

No branches or pull requests

3 participants
@kels271828 and others