def addCommandApply(self, ticket, commandId, runner, arguments, validationExpression, taskName, relativePathToLogDir, environment, runnerPackages=None, watcherPackages=None):
        if not self.isPaused:
            try:
                newCommand = Command(commandId, runner, arguments, validationExpression, taskName, relativePathToLogDir, environment=environment, runnerPackages=runnerPackages, watcherPackages=watcherPackages)
                self.commands[commandId] = newCommand
                self.addCommandWatcher(newCommand)
                LOGGER.info("Added command %d {runner: %s, arguments: %s}", commandId, runner, repr(arguments))
            except Exception, e:
                LOGGER.error(e % "Error during command init: %r")
                raise e
        else:
            raise WorkerInternalException("Worker flag 'isPaused' is on.")

    ##
    #
    # @param id the integer value identifying the command
    # @todo add a ticket parameter
    # @todo find a clean way to stop the processes so that they \
    #       can call their after-execution scripts
    #
dataset/ETHPy150Open mikrosimage/OpenRenderManagement/src/octopus/worker/worker.py/Worker.addCommandApply/swapped operands of `%`