Run jobs in web workers if no job-handlers farm is configured and using

a default job conf (no job_conf.xml)
This commit is contained in:
Nate Coraor
2017-11-17 17:08:31 -05:00
parent 47473cb85d
commit e8a22447fd
+3 -1
View File
@@ -102,7 +102,9 @@ class ConfiguresHandlers:
:return: bool
"""
if self.app.application_stack.in_pool(self.app.application_stack.pools.JOB_HANDLERS):
if (self.app.application_stack.in_pool(self.app.application_stack.pools.JOB_HANDLERS) or
(not self.app.application_stack.has_pool(self.app.application_stack.pools.JOB_HANDLERS) and
self.app.job_config.is_default)):
# Handlers started as uWSGI mules do not require configuration in the job conf
return True
for collection in self.handlers.values():