How to use the dagit.pipeline_run_storage.PipelineRunStorage function in dagit

To help you get started, we’ve selected a few dagit 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 dagster-io / dagster / python_modules / dagit / dagit / dagit_tests / test_smoke.py View on Github external
def test_smoke_app():
    repository_container = app.RepositoryContainer(repository=define_example_repository())
    pipeline_run_storage = PipelineRunStorage()
    flask_app = app.create_app(repository_container, pipeline_run_storage)
    client = flask_app.test_client()

    result = client.post('/graphql', data={'query': 'query { pipelines { nodes { name }}}'})

    data = json.loads(result.data.decode('utf-8'))

    assert len(data['data']['pipelines']['nodes']) == 2

    assert set([node_data['name'] for node_data in data['data']['pipelines']['nodes']]) == set(
        ['pandas_hello_world', 'pandas_hello_world_fails']
    )
github dagster-io / dagster / python_modules / dagit / dagit / dagit_tests / test_smoke.py View on Github external
def test_smoke_app():
    repository_container = app.RepositoryContainer(repository=define_example_repository())
    pipeline_run_storage = PipelineRunStorage()
    flask_app = app.create_app(repository_container, pipeline_run_storage)
    client = flask_app.test_client()

    result = client.post('/graphql', data={'query': 'query { pipelines { nodes { name }}}'})

    data = json.loads(result.data.decode('utf-8'))

    assert data == {"data": {"pipelines": {"nodes": [{"name": "pandas_hello_world"}]}}}