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

Unable to reuse pipeline names #78

Open
rulai-huajunzeng opened this issue Nov 8, 2016 · 1 comment
Open

Unable to reuse pipeline names #78

rulai-huajunzeng opened this issue Nov 8, 2016 · 1 comment

Comments

@rulai-huajunzeng
Copy link

Hi, I have a use case where pipeline names can be reused after the previous pipeline has finished, which is not possible currently. For example, the code below:

p1=Pipeline("my_pipeline")
...
p1.run()
p1=None
p2=Pipeline("my_pipeline")

will generate an error msg: "Error: Duplicate pipeline. A pipeline named 'my_pipeline' already exists."
Any suggestion how I can workaround it?

@AndreasHeger
Copy link
Collaborator

Ruffus keeps a dictionary of all pipelines that are defined. To delete a pipeline, try:

from ruffus import Pipeline
...
del Pipeline.pipelines["my_pipeline"]

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

2 participants