def invoke(self, vmid, run_async=True):
    LOG.info(f'Invoking {vmid} (new thread? {run_async})')
    m = TlMachine(vmid, self)
    if run_async:
        thread = threading.Thread(target=m.run)
        LOG.info(f'New thread: {thread}')
        thread.start()
    else:
        m.run()
def invoke(self, vmid, run_async=True):
    LOG.info(f'Invoking {vmid} (new thread? {run_async})')
    m = TlMachine(vmid, self)
    if run_async:
        thread = threading.Thread(target=m.run)
        LOG.info(f'New thread: {thread}')
        thread.start()
    else:
        m.run()