Skip to content

Commit

Permalink
start a separate instance for each workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Jun 2, 2024
1 parent cb2321b commit 3906a83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions planemo/commands/cmd_autoupdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@ def cli(ctx, paths, **kwds): # noqa C901
kwds["install_repository_dependencies"] = False
kwds["shed_install"] = True

with engine_context(ctx, **kwds) as galaxy_engine:
with galaxy_engine.ensure_runnables_served(modified_workflows) as config:
for workflow in modified_workflows:

for workflow in modified_workflows:
with engine_context(ctx, **kwds) as galaxy_engine:
with galaxy_engine.ensure_runnables_served([workflow]) as config:
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)
Expand Down

0 comments on commit 3906a83

Please sign in to comment.