def createUnitAndJobChainThreaded(path, watched_dir, workflow): try: logger.debug('Watching path %s', path) Executor.apply_async(createUnitAndJobChain, [path, watched_dir, workflow]) except Exception: logger.exception('Error creating threads to watch directories')
def createUnitAndJobChainThreaded(path, config, terminate=True): try: logger.debug('Watching path %s', path) Executor.apply_async(createUnitAndJobChain, [path, config], {"terminate": terminate}) except Exception: logger.exception('Error creating threads to watch directories')