Package backend :: Module job :: Class BuildJob
[hide private]
[frames] | no frames]

Class BuildJob

source code


Instance Methods [hide private]
 
__init__(self, task_data, worker_opts)
Creates build job object :param dict task_dict: dictionary with the following fields (based frontend.models.Build)::
source code
 
update(self, data_dict)
:param dict data_dict:
source code
 
to_dict(self)
:return dict: dictified build job
source code
 
__str__(self)
str(x)
source code
 
__unicode__(self) source code

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

Properties [hide private]
  pkg_name
  pkg_version
Canonical version presentation release and epoch "{epoch}:{version}-{release}"

Inherited from object: __class__

Method Details [hide private]

__init__(self, task_data, worker_opts)
(Constructor)

source code 

Creates build job object
:param dict task_dict: dictionary with the following fields
    (based frontend.models.Build)::

    - pkgs: list of space separated urls of packages to build
    - repos: list of space separated additional repos
    - timeout: maximum allowed time of build, build will fail if exceeded # unused
    - project_owner:
    - project_name:
    - submitter:

:param dict worker_opts: worker options, fields::

    - destdir: worker root directory to store results
    - results_baseurl: root url to stored results
    - timeout: default worker timeout

Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

Property Details [hide private]

pkg_name

Get Method:
unreachable.pkg_name(self)

pkg_version

Canonical version presentation release and epoch "{epoch}:{version}-{release}"

Get Method:
unreachable.pkg_version(self) - Canonical version presentation release and epoch "{epoch}:{version}-{release}"