Ignore:
Timestamp:
10 Feb 2015, 14:27:44 (10 years ago)
Author:
uli
Message:

Give possibility to fake high system load in report jobs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/testing.py

    r10463 r12582  
    441441    status = COMPLETED
    442442    result = None
     443    acts_under_heavy_load = False  # set to True to mimic system high load
    443444
    444445    def __init__(self, *args, **kw):
     
    460461
    461462    def put(self, job):
     463        if getattr(job, 'acts_under_heavy_load', False):
     464            return None
    462465        num = str(self._curr_num)
    463466        self._jobs[num] = job
Note: See TracChangeset for help on using the changeset viewer.