toil.batchSystems.mesos

Submodules

Classes

TaskData

JobQueue

MesosShape

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

ToilJob

Package Contents

class toil.batchSystems.mesos.TaskData

Bases: tuple

startTime
agentID
agentIP
executorID
memory
cores
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.

class toil.batchSystems.mesos.ToilJob

Bases: tuple

jobID
name
resources
command
userScript
environment
workerCleanupInfo