References

This is the class and function reference of the package.

clusterlib.scheduler: Scheduler

Module to help working with scheduler such as sun grid engine (SGE) or Simple Linux Utility for Resource Management (SLURM).

Main functions covered are :
  • get the list of names of all running jobs;
  • generate easily a submission query for a job.
scheduler.queued_or_running_jobs() Return the names of the queued or running jobs under SGE and SLURM
scheduler.submit(job_command[, job_name, ...]) Write the submission query (without script)

clusterlib.storage: Storage

This module allows to load and store values using a simple sqlite database in a distributed fashion. This is a simple key-value NoSQL database using only the Python standard library and sqlite3.

This can be used to cache results of functions or scripts in distributed environments.

storage.sqlite3_loads(file_name[, key, timeout]) Load value with key from sqlite3 stored at fname
storage.sqlite3_dumps(dictionnary, file_name) Dumps value with key in the sqlite3 database