Beispiel #1
0
    def __init__(self, app_id, urls_pipelines_map=None):
        self.app_id = app_id
        self.app = get_app(app_id)
        self.urls_pipelines_map = urls_pipelines_map or dict()

        for url, pipeline_id in self.urls_pipelines_map.items():
            self.expose_webhook_url(url, pipeline_id)

        self.app.add_component(self)
Beispiel #2
0
    def __init__(
        self,
        app_id,
        name,
    ):
        self.app_id = app_id
        self.app = get_app(app_id)
        self.name = name

        self.app.add_component(self)
Beispiel #3
0
    def __init__(
        self,
        app_id,
        name,
        host,
        authorization_url,
        exchange_url,
        authorization_payload,
        auth_pipeline_id=None,
    ):
        self.app_id = app_id
        self.app = get_app(app_id)
        self.name = name
        self.host = host
        self.authorization_url = authorization_url
        self.authorization_payload = authorization_payload
        self.exchange_url = exchange_url
        self.auth_pipeline_id = auth_pipeline_id

        self.expose_app_urls()
        self.app.add_component(self)
Beispiel #4
0
def call_pipeline_async(app_id, pipeline_id, data):
    return get_app(app_id).get_pipeline(pipeline_id).add_job_or_run(**data)
Beispiel #5
0
def map_pipeline_async(app_id, pipeline_id, iterator):
    for row in iterator:
        get_app(app_id).get_pipeline(pipeline_id).add_job_or_run(**row)