mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 09:58:11 +08:00
Workaround for Travis
Travis doesn't support cpu affinity in their virtuals so I've added a setting TESTING that will bypass the actual affinity setting, but will still cover most of the code. Might be useful for future workarounds.
This commit is contained in:
@@ -67,6 +67,9 @@ class Conf(object):
|
||||
STOPPED = _('Stopped')
|
||||
STOPPING = _('Stopping')
|
||||
|
||||
# to manage workarounds during testing
|
||||
TESTING = conf.get('testings', False)
|
||||
|
||||
|
||||
# logger
|
||||
logger = logging.getLogger('django-q')
|
||||
|
||||
Reference in New Issue
Block a user