toil.batchSystems.mesos

Subpackages

Submodules

Attributes

TaskData

ToilJob

Classes

JobQueue

MesosShape

Represents a job or a node's "shape", in terms of the dimensions of memory, cores, disk and

Package Contents

toil.batchSystems.mesos.TaskData
class toil.batchSystems.mesos.JobQueue[source]
queues
sortedTypes = []
jobLock
insertJob(job, jobType)[source]
jobIDs()[source]
nextJobOfType(jobType)[source]
typeEmpty(jobType)[source]
class toil.batchSystems.mesos.MesosShape(wallTime, memory, cores, disk, preemptible)[source]

Bases: toil.provisioners.abstractProvisioner.Shape

Represents a job or a node’s “shape”, in terms of the dimensions of memory, cores, disk and wall-time allocation.

The wallTime attribute stores the number of seconds of a node allocation, e.g. 3600 for AWS. FIXME: and for jobs?

The memory and disk attributes store the number of bytes required by a job (or provided by a node) in RAM or on disk (SSD or HDD), respectively.

Parameters:
__gt__(other)[source]

Inverted. Returns True if self is less than other, else returns False.

This is because jobTypes are sorted in decreasing order, and this was done to give expensive jobs priority.

toil.batchSystems.mesos.ToilJob