Beispiel #1
0
    def start(cls, properties=None, concurrent_option="skip"):
        """Start flow from another flow

        :param dict[str,str] properties:
        :param str concurrent_option: possible values ignore/skip,
        pipeline, queue
        :rtype:
        """
        # LOAD CONFIG
        with open(join(props["working.dir"], "config.yml")) as fd:
            config = yaml.load(fd)

        client = AzkabanClient(config["server"]["host"])
        client.login(config["server"]["username"],
                     config["server"]["password"])
        return client.execute_flow(config["project"], cls.name or cls.__name__,
                                   properties,
                                   concurrentOption=concurrent_option)
Beispiel #2
0
    def start(cls, properties=None, concurrent_option='skip'):
        """Start flow from another flow

        :param dict[str,str] properties:
        :param str concurrent_option: possible values ignore/skip,
        pipeline, queue
        :rtype:
        """
        # LOAD CONFIG
        with open(join(props['working.dir'], 'config.yml')) as fd:
            config = yaml.load(fd)

        client = AzkabanClient(config['server']['host'])
        client.login(config['server']['username'],
                     config['server']['password'])
        return client.execute_flow(config['project'],
                                   cls.name or cls.__name__,
                                   properties,
                                   concurrentOption=concurrent_option)