From 65328f4c14ab2fe7b9561427377978b3356cd8e6 Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Mon, 10 Jun 2024 16:05:17 +0200 Subject: [PATCH] Revert "start a separate instance for each workflow" This reverts commit e49b0806ecc6dbefae856ff359beffebb72b3bcc. --- planemo/commands/cmd_autoupdate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/planemo/commands/cmd_autoupdate.py b/planemo/commands/cmd_autoupdate.py index d25919c12..40c988810 100644 --- a/planemo/commands/cmd_autoupdate.py +++ b/planemo/commands/cmd_autoupdate.py @@ -135,9 +135,9 @@ def cli(ctx, paths, **kwds): # noqa C901 kwds["install_repository_dependencies"] = False kwds["shed_install"] = True - for workflow in modified_workflows: - with engine_context(ctx, **kwds) as galaxy_engine: - with galaxy_engine.ensure_runnables_served([workflow]) as config: + with engine_context(ctx, **kwds) as galaxy_engine: + with galaxy_engine.ensure_runnables_served(modified_workflows) as config: + for workflow in modified_workflows: if config.updated_repos.get(workflow.path) or kwds.get("engine") == "external_galaxy": info("Auto-updating workflow %s" % workflow.path) updated_workflow = autoupdate.autoupdate_wf(ctx, config, workflow)