HomePhabricator

Disable terminate button if run cannot be cancelled

Authored by alangenfeld on Mon, Nov 4, 9:08 PM.

Description

Disable terminate button if run cannot be cancelled

Summary:
The cancel_pipeline_execution mutation returns a CancelPipelineExecutionFailure if run.status is not PipelineRunStatus.STARTED.

This diff updates the UI to disable the "Terminate" button if run.status !== PipelineRunStatus.STARTED

Test Plan: Execute pipeline, wait for execution to finish/error, verify Terminate button is disabled

Reviewers: #ft, sashank

Reviewed By: #ft, sashank

Subscribers: alangenfeld

Differential Revision: https://dagster.phacility.com/D1351

Details

Committed
alangenfeldMon, Nov 4, 9:51 PM
Reviewer
Restricted Project
Differential Revision
D1351: Disable terminate button if run cannot be cancelled
Parents
R1:b7f103140f89: add raise_on_error to execute_solid
Branches
Unknown
Tags
Unknown