How to use the dagit.pipeline_run_storage.PipelineRunStatus.FAILURE 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 / View on Github external
    pipeline_run = InMemoryPipelineRun(
        create_execution_plan(pipeline, env_config),
    execution_manager = MultiprocessingExecutionManager()
    execution_manager.execute_pipeline(repository_container, pipeline, pipeline_run)
    assert pipeline_run.status == PipelineRunStatus.FAILURE
    assert pipeline_run.all_logs()