def spawn_after(self, _spawn_method, *args, **kwargs):
        self._spawn_method = _spawn_method
        self._spawn_args = args
        self._spawn_kwargs = kwargs
Call this to spawn a thread to complete the task.
dataset/ETHPy150Open openstack/ironic/ironic/conductor/task_manager.py/TaskManager.spawn_after