"""
return bb.utils.cpu_count()
- def triggerEvent(self, command, params):
- """
- Trigger a certain event
- """
- event = params[0]
- bb.event.fire(eval(event), command.cooker.configuration.data)
-
class CommandsAsync:
"""
A class of asynchronous commands
command.cooker.parseConfigurationFiles(prefiles, postfiles)
command.finishAsyncCommand()
parseConfigurationFiles.needcache = False
+
+ def triggerEvent(self, command, params):
+ """
+ Trigger a certain event
+ """
+ event = params[0]
+ bb.event.fire(eval(event), command.cooker.configuration.data)
+ command.currentAsyncCommand = None
+ triggerEvent.needcache = False
+