RQ

magna.rq.rq_start_worker()

Start a pre-configured RQ worker that will listen on two queues: - The “general” queue. - The “host” queue.

magna.rq.rq_run_conda(env, cmd)

Run a shell command in a conda environment.

Parameters
  • env (str) – The name of the conda environment to use.

  • cmd (str) – The command to run.

magna.rq.rq_enqueue_conda(queue, env, cmd)

Enqueue a shell command in a conda environment.

Parameters
  • queue (str) – The name of the queue to use.

  • env (str) – The name of the conda environment to use.

  • cmd (str) – The command to run.

magna.rq.rq_delete_queue(queue)

Delete a queue and all jobs contained in it.

Parameters

queue (str) – The name of the queue to delete.