~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/buildmaster/doc/buildqueue.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-07 17:40:43 UTC
  • mfrom: (14513.3.18 builders-timeout-903827-2)
  • Revision ID: launchpad@pqm.canonical.com-20120107174043-8a8bkggm6n638o0f
[r=jcsackett][bug=903827] Make buildqueue.specific_job and
        builder.currentjob cached properties.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
collected) the BuildQueue record representing it is removed.
14
14
 
15
15
    >>> from lp.services.webapp.testing import verifyObject
 
16
    >>> from lp.services.propertycache import get_property_cache
16
17
    >>> from lp.buildmaster.interfaces.buildqueue import (
17
18
    ...     IBuildQueue, IBuildQueueSet)
18
19
 
135
136
 
136
137
    >>> job.reset()
137
138
 
 
139
    >>> del get_property_cache(bob).currentjob
138
140
    >>> print bob.currentjob
139
141
    None
140
142
 
154
156
 
155
157
    >>> job.markAsBuilding(bob)
156
158
 
 
159
    >>> del get_property_cache(bob).currentjob
157
160
    >>> bob.currentjob == job
158
161
    True
159
162