Esempio n. 1
0
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')
Esempio n. 2
0
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')