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

polus plugins refresh() does not work as expected #462

Open
agerardin opened this issue Sep 12, 2023 · 0 comments
Open

polus plugins refresh() does not work as expected #462

agerardin opened this issue Sep 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@agerardin
Copy link
Contributor

agerardin commented Sep 12, 2023

** Issue on the polus.plugin tool **

Summary

polus plugin refresh() does not refresh the list of plugins on the first run but only the second time around.

What is the expected correct behavior?

polus plugin refresh() should populate the plugin list correctly on the first run

Steps to reproduce

        import polus.plugins as pp
        image_assembler_plugin_name, image_assembler_plugin_url  = ("ImageAssembler",  "https://raw.githubusercontent.com/agerardin/polus-plugins/new/image-assembler-plugin-1.4.0-dev0/transforms/images/image-assembler-plugin/plugin.json")
        logger.debug(f"installing plugin {image_assembler_plugin_name}")
        pp.submit_plugin(image_assembler_plugin_url)

        # TODO CHECK pp.refresh() still not working. Need to be run twice.
        pp.refresh()
        logger.info(f"polus plugins installed : {pp.list}")
@agerardin agerardin added the bug Something isn't working label Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant