Package coprs :: Module models :: Class Build
[hide private]
[frames] | no frames]

Class Build

source code


Representation of one build in one copr

Instance Methods [hide private]
 
state(self)
Return text representation of status of this build
source code
 
cancelable(self)
Find out if this build is cancelable.
source code

Inherited from Serializer: serializable_attributes, to_dict

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  id = db.Column(db.Integer, primary_key= True)
  pkgs = db.Column(db.Text)
  canceled = db.Column(db.Boolean, default= False)
  chroots = db.Column(db.Text, nullable= False)
  repos = db.Column(db.Text)
  submitted_on = db.Column(db.Integer, nullable= False)
  started_on = db.Column(db.Integer)
  ended_on = db.Column(db.Integer)
  results = db.Column(db.Text)
  status = db.Column(db.Integer)
  memory_reqs = db.Column(db.Integer, default= constants.DEFAULT...
  timeout = db.Column(db.Integer, default= constants.DEFAULT_BUI...
  user_id = db.Column(db.Integer, db.ForeignKey('user.id'))
  user = db.relationship('User', backref= db.backref('builds'))
  copr_id = db.Column(db.Integer, db.ForeignKey('copr.id'))
  copr = db.relationship('Copr', backref= db.backref('builds'))
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

state(self)

source code 

Return text representation of status of this build

Decorators:
  • @property

cancelable(self)

source code 

Find out if this build is cancelable.

ATM, build is cancelable only if it wasn't grabbed by backend.

Decorators:
  • @property

Class Variable Details [hide private]

memory_reqs

Value:
db.Column(db.Integer, default= constants.DEFAULT_BUILD_MEMORY)

timeout

Value:
db.Column(db.Integer, default= constants.DEFAULT_BUILD_TIMEOUT)