toil.batchSystems.mesos

Subpackages

Submodules

Package Contents

Classes

Shape

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

JobQueue

MesosShape

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

Attributes

TaskData

ToilJob

class toil.batchSystems.mesos.Shape(wallTime, memory, cores, disk, preemptible)[source]

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
__eq__(other)[source]

Return self==value.

Parameters

other (Any) –

Return type

bool

greater_than(other)[source]
Parameters

other (Any) –

Return type

bool

__gt__(other)[source]

Return self>value.

Parameters

other (Any) –

Return type

bool

__repr__()[source]

Return repr(self).

Return type

str

__str__()[source]

Return str(self).

Return type

str

__hash__()[source]

Return hash(self).

Return type

int

toil.batchSystems.mesos.TaskData
class toil.batchSystems.mesos.JobQueue[source]
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

digraph inheritancef4e31e5f1a { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "MesosShape" [URL="#toil.batchSystems.mesos.MesosShape",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Shape" -> "MesosShape" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Shape" [URL="../../provisioners/abstractProvisioner/index.html#toil.provisioners.abstractProvisioner.Shape",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Represents a job or a node's \"shape\", in terms of the dimensions of memory, cores, disk and"]; }

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