pyfarm.models.jobgroup module

Job Group Model

Model for job groups

class pyfarm.models.jobgroup.JobGroup(**kwargs)[source]

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

Used to group jobs together for better presentation in the UI

id

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

jobs
main_jobtype

The jobtype of the main job in this group

main_jobtype_id

ID of the jobtype of the main job in this group. Purely for display and filtering.

title

The title of the job group’s name

user

The user who owns these jobs

user_id

The id of the user who owns these jobs