Changeset 12586


Ignore:
Timestamp:
10 Feb 2015, 20:48:22 (10 years ago)
Author:
Henrik Bettermann
Message:

Check system load when starting exporters.

File:
1 edited

Legend:

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

    r12561 r12586  
    15841584            return
    15851585        if CREATE:
     1586            utils = queryUtility(IKofaUtils)
     1587            if not utils.expensive_actions_allowed():
     1588                self.flash(_(
     1589                    "Currently, exporters cannot be started due to high "
     1590                    "system load. Please try again later."), type='danger')
     1591                self.entries = doll_up(self, user=None)
     1592                return
    15861593            job_id = self.context.start_export_job(
    15871594                exporter, self.request.principal.id)
Note: See TracChangeset for help on using the changeset viewer.