thyrsis.simulation.jobqueue module

This module contains the class to create a job queue

class thyrsis.simulation.jobqueue.JobQueue(jobs, MPI, managed=True)

Bases: object

Simple class to create a job queue

The jobs are entered as a list of string, the call to next() returns the next job to perform

The process of rank 0 is used as manager

If MPI is not defined, the job queue is just a simple list

Inspired by http://etutorials.org/Linux+systems/cluster+computing+with+linux/Part+II+Parallel+Programming/Chapter+8+Parallel+Programming+with+MPI/8.2+Manager+Worker+Example/