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

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