Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

myqueue

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

myqueue

Frontend for SLURM/LSF/PBS

  • 24.10.0
  • PyPI
  • Socket score

Maintainers
2

.. image:: https://gitlab.com/myqueue/myqueue/badges/master/coverage.svg .. image:: https://badge.fury.io/py/myqueue.svg :target: https://pypi.org/project/myqueue/ .. image:: https://joss.theoj.org/papers/10.21105/joss.01844/status.svg :target: https://doi.org/10.21105/joss.01844 .. image:: https://readthedocs.org/projects/myqueue/badge/?version=latest :target: https://myqueue.readthedocs.io/?badge=latest :alt: Documentation Status

======= MyQueue

MyQueue is a tool for submitting and keeping track of tasks running on a cluster of computers. It uses SLURM_, PBS_ or LSF_ as a backend and makes handling of tasks easy. It has a command-line interface called mq with a number of sub-commands and a Python interface for managing workflows. Simple to set up: no system administrator or database required.

.. admonition:: Features

* Easy task submission:

  * from the command line: ``mq submit <task> -R <cores>:<time>``
  * from Python: ``myqueue.submit(...)``

* Automatic restarting of timed-out/out-of-memory tasks
  with more time/cores

* Remembers your finished and failed tasks

* Powerful *list* command for monitoring

* Can be used together with Python *venv*\ 's

* Folder-based Workflows

Quick links:

.. _SLURM: https://slurm.schedmd.com/ .. _PBS: https://en.m.wikipedia.org/wiki/Portable_Batch_System .. _LSF: https://en.m.wikipedia.org/wiki/Platform_LSF

Examples

Submit Python script to 32 cores for 2 hours::

$ mq submit script.py -R 32:2h

Submit Python module abc.run in two folders::

$ mq submit abc.run F1/ F2/ -R 16:30m

Check results of tasks in current folder and its sub-folders::

$ mq list  # or mq ls
id  folder name      res.   age     state   time    error
--- ------ --------- ------ ------- ------- ------- ------
117 ./     script.py 32:2h  5:28:43 TIMEOUT 2:00:03
118 ./F1/  abc.run   16:30m 5:22:16 done      12:12
119 ./F2/  abc.run   16:30m 5:22:16 done      17:50
--- ------ --------- ------ ------- ------- ------- ------
done: 2, TIMEOUT: 1, total: 3

Resubmit with more resources (1 day)::

 $ mq resubmit -i 117 -R 32:1d

See more examples of use here:

  • Quick-start <https://myqueue.readthedocs.io/quickstart.html>__
  • Documentation <https://myqueue.readthedocs.io/documentation.html>__
  • How it works <https://myqueue.readthedocs.io/howitworks.html>__
  • Command-line interface <https://myqueue.readthedocs.io/cli.html>__
  • Workflows <https://myqueue.readthedocs.io/workflows.html>__
  • Python API <https://myqueue.readthedocs.io/api.html>__

Installation

MyQueue needs Python_ version 3.8 or later.

Install MyQueue from PyPI_ with pip::

$ python3 -m pip install myqueue

This will also install the rich_ and networkx_ packages that MyQueue depends on.

Enable bash tab-completion for future terminal sessions like this::

$ mq completion >> ~/.profile

Now, configure your system as described here <https://myqueue.readthedocs.io/configuration.html>__.

.. _Python: https://python.org/ .. _PyPI: https://pypi.org/project/myqueue/ .. _rich: https://pypi.org/project/rich/ .. _networkx: https://pypi.org/project/networkx/

Release notes

See the release notes <https://myqueue.readthedocs.io/releasenotes.html>_ for a history of notable changes to MyQueue.

Help, support and feedback

If you need help, want to report a bug or suggest a new feature then you are welcome to get in touch via MyQueue's issue tracker_ or the #myqueue room on Matrix_.

.. _issue tracker: https://gitlab.com/myqueue/myqueue/issues/ .. _Matrix: https://matrix.to/#/#myqueue:matrix.org

Contributing

We welcome contributions to the code and documentation, preferably as merge-requests <https://gitlab.com/myqueue/myqueue/merge_requests/>. More information here <https://myqueue.readthedocs.io/development.html>.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc