How to use the tabpy.tabpy_server.handlers.base_handler.STAGING_THREAD.submit function in tabpy

To help you get started, we’ve selected a few tabpy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tableau / TabPy / tabpy / tabpy_server / handlers / endpoint_handler.py View on Github external
def _delete_po_future(self, delete_path):
        future = STAGING_THREAD.submit(shutil.rmtree, delete_path)
        ret = yield future
        raise gen.Return(ret)
github tableau / TabPy / tabpy / tabpy_server / handlers / management_handler.py View on Github external
def _copy_po_future(self, src_path, target_path):
        future = STAGING_THREAD.submit(
            copy_from_local, src_path, target_path, is_dir=True
        )
        ret = yield future
        raise gen.Return(ret)