def apply(self):
        """
        Make the pending config become the running config for this task
        by triggering any necessary changes in the running task.

        Returns True to request a shorter period before the next call,
        False if nothing special is needed.
    """
        log = self._params.get('log', self._discard)
        if not self._config_pending:
            raise TaskError(self._name, "No configuration available to apply")

        control = self._config_pending.get('control')
        if not control:
            control = 'wait'

        log.debug("for '%s', control '%s'", self._name, control)
        if self._command_change() and len(self.get_pids()) > 0:
            self._event_deregister()
            self.stop(task_is_resetting=True)

        self._config_running = self._config_pending
        self._context = self._context_build()

        if control in self._legion.run_controls:
            self._event_register(control)
        return self.manage()
Make the pending config become the running config for this task
        by triggering any necessary changes in the running task.

        Returns True to request a shorter period before the next call,
        False if nothing special is needed.