pyfarm.models.jobtype module

Job Type Models

Models and objects dedicated to handling information which is specific to an individual job. See pyfarm.models.job for more the more general implementation.

class pyfarm.models.jobtype.JobType(**kwargs)[source]

Bases: flask_sqlalchemy.Model, pyfarm.models.core.mixins.UtilityMixins, pyfarm.models.core.mixins.ReprMixin

Stores the unique information necessary to execute a task

REPR_COLUMNS = ('id', 'name')
description

Human readable description of the job type. This field is not required and is not directly relied upon anywhere.

id

Provides an id for the current row. This value should never be directly relied upon and it’s intended for use by relationships.

name

The name of the job type. This can be either a human readable name or the name of the job type class itself.

validate_name(key, value)[source]
versions