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]
 
chroot_states(self) source code
 
has_pending_chroot(self) source code
 
has_unfinished_chroot(self) source code
 
status(self)
Return build status according to build status of its chroots
source code
 
state(self)
Return text representation of status of this build
source code
 
cancelable(self)
Find out if this build is cancelable.
source code
 
repeatable(self)
Find out if this build is repeatable.
source code
 
deletable(self)
Find out if this build is deletable.
source code

Inherited from helpers.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)
  built_packages = db.Column(db.Text)
  pkg_version = db.Column(db.Text)
  canceled = db.Column(db.Boolean, default= 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)
  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"))
  chroots = association_proxy("build_chroots", "mock_chroot")
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

chroot_states(self)

source code 
Decorators:
  • @property

has_pending_chroot(self)

source code 
Decorators:
  • @property

has_unfinished_chroot(self)

source code 
Decorators:
  • @property

status(self)

source code 

Return build status according to build status of its chroots

Decorators:
  • @property

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.

Build is cancelabel only when it's pending (not started)

Decorators:
  • @property

repeatable(self)

source code 

Find out if this build is repeatable.

Build is repeatable only if it's not pending, starting or running

Decorators:
  • @property

deletable(self)

source code 

Find out if this build is deletable.

Build is deletable only when it's finished. (also means cancelled) It is important to remember that "failed" state doesn't ultimately mean it's finished - so we need to check whether the "ended_on" property has been set.

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)