Skip to content

first draft for instructions how to run planemo and submit jobs to a slurm cluster #1512

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Smeds
Copy link
Contributor

@Smeds Smeds commented Apr 1, 2025

These instructions have currently been tested on:

  • stampede3
  • PSC Bridges-2
  • Purdue Anvil CPU

by smeds

@Smeds
Copy link
Contributor Author

Smeds commented Apr 1, 2025

I have problems running planemo on bridges2. Every things behaves really slow and I get the following error:

   File "/ocean/projects/mcb140028p/psmeds/test_cwl/planemo_venv/lib64/python3.11/site-packages/planemo/galaxy/serve.py", line 66, in _serve
    config.install_workflows()
  File "/ocean/projects/mcb140028p/psmeds/test_cwl/planemo_venv/lib64/python3.11/site-packages/planemo/galaxy/config.py", line 848, in install_workflows
    self._install_workflow(runnable)
  File "/ocean/projects/mcb140028p/psmeds/test_cwl/planemo_venv/lib64/python3.11/site-packages/planemo/galaxy/config.py", line 854, in _install_workflow
    workflow_repos = install_shed_repos(
                     ^^^^^^^^^^^^^^^^^^^
  File "/ocean/projects/mcb140028p/psmeds/test_cwl/planemo_venv/lib64/python3.11/site-packages/planemo/galaxy/workflows.py", line 118, in install_shed_repos
    install_results = install_tool_manager.install_repositories(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/ocean/projects/mcb140028p/psmeds/test_cwl/planemo_venv/lib64/python3.11/site-packages/ephemeris/shed_tools.py", line 236, in install_repositories
    result = self.install_repository_revision(repository, log)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/ocean/projects/mcb140028p/psmeds/test_cwl/planemo_venv/lib64/python3.11/site-packages/ephemeris/shed_tools.py", line 518, in install_repository_revision
    success = self.wait_for_install(repository=repository, log=log, timeout=3600)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/ocean/projects/mcb140028p/psmeds/test_cwl/planemo_venv/lib64/python3.11/site-packages/ephemeris/shed_tools.py", line 554, in wait_for_install
    installed_repos = self.tool_shed_client.get_repositories()
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/ocean/projects/mcb140028p/psmeds/test_cwl/planemo_venv/lib64/python3.11/site-packages/bioblend/galaxy/toolshed/__init__.py", line 46, in get_repositories
    return self._get()
           ^^^^^^^^^^^
  File "/ocean/projects/mcb140028p/psmeds/test_cwl/planemo_venv/lib64/python3.11/site-packages/bioblend/galaxy/client.py", line 134, in _get
    raise ConnectionError(
bioblend.ConnectionError: HTTPConnectionPool(host='localhost', port=9090): Max retries exceeded with url: /api/tool_shed_repositories (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x15008bf47510>: Failed to establish a new connection: [Errno 111] Connection refused')), 0 attempts left: 

@mvdbeek
Copy link
Member

mvdbeek commented Apr 2, 2025

That does sound like a bridges problem ... annoying, but not sure we can do anything about this.

@Smeds Smeds marked this pull request as ready for review June 11, 2025 19:30
Slurm
~~~~~~~~~~~~~~~~~~

To run the workflow on a SLURM cluster, you’ll need to configure the ``job_config.yaml`` file to set up a job
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use https://github.com/galaxyproject/galaxy-job-config-init to set up the job config ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well we added a Planemo command to wrap that with Planemo-style arguments and such - I would use planemo job_config_init to template this? xref https://github.com/galaxyproject/planemo/blob/master/planemo/commands/cmd_job_config_init.py. There is a profile equivalent also.

Troubleshooting
------------------

**Temp direcory not shared between nodes**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be necessary with tmp_dir: true, the default

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

Successfully merging this pull request may close these issues.

3 participants