Changeset View
Changeset View
Standalone View
Standalone View
js_modules/dagit/src/runs/RunUtils.tsx
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
export const LAUNCH_PIPELINE_EXECUTION_MUTATION = gql` | export const LAUNCH_PIPELINE_EXECUTION_MUTATION = gql` | ||||
mutation LaunchPipelineExecution($executionParams: ExecutionParams!) { | mutation LaunchPipelineExecution($executionParams: ExecutionParams!) { | ||||
launchPipelineExecution(executionParams: $executionParams) { | launchPipelineExecution(executionParams: $executionParams) { | ||||
__typename | __typename | ||||
... on LaunchPipelineRunSuccess { | ... on LaunchPipelineRunSuccess { | ||||
run { | run { | ||||
id | |||||
runId | runId | ||||
pipelineName | pipelineName | ||||
} | } | ||||
} | } | ||||
... on PipelineNotFoundError { | ... on PipelineNotFoundError { | ||||
message | message | ||||
} | } | ||||
... on PipelineConfigValidationInvalid { | ... on PipelineConfigValidationInvalid { | ||||
Show All 30 Lines | terminatePipelineExecution(runId: $runId) { | ||||
... on TerminatePipelineExecutionFailure { | ... on TerminatePipelineExecutionFailure { | ||||
message | message | ||||
} | } | ||||
... on PipelineRunNotFoundError { | ... on PipelineRunNotFoundError { | ||||
message | message | ||||
} | } | ||||
... on TerminatePipelineExecutionSuccess { | ... on TerminatePipelineExecutionSuccess { | ||||
run { | run { | ||||
id | |||||
runId | runId | ||||
canTerminate | canTerminate | ||||
} | } | ||||
} | } | ||||
... on PythonError { | ... on PythonError { | ||||
message | message | ||||
} | } | ||||
} | } | ||||
} | } | ||||
`; | `; | ||||
export const LAUNCH_PIPELINE_REEXECUTION_MUTATION = gql` | export const LAUNCH_PIPELINE_REEXECUTION_MUTATION = gql` | ||||
mutation LaunchPipelineReexecution($executionParams: ExecutionParams!) { | mutation LaunchPipelineReexecution($executionParams: ExecutionParams!) { | ||||
launchPipelineReexecution(executionParams: $executionParams) { | launchPipelineReexecution(executionParams: $executionParams) { | ||||
__typename | __typename | ||||
... on LaunchPipelineRunSuccess { | ... on LaunchPipelineRunSuccess { | ||||
run { | run { | ||||
id | |||||
runId | runId | ||||
pipelineName | pipelineName | ||||
rootRunId | rootRunId | ||||
parentRunId | parentRunId | ||||
} | } | ||||
} | } | ||||
... on PipelineNotFoundError { | ... on PipelineNotFoundError { | ||||
message | message | ||||
▲ Show 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | return ( | ||||
</div> | </div> | ||||
); | ); | ||||
} | } | ||||
} | } | ||||
export const RunComponentFragments = { | export const RunComponentFragments = { | ||||
RUN_TIME_FRAGMENT: gql` | RUN_TIME_FRAGMENT: gql` | ||||
fragment RunTimeFragment on PipelineRun { | fragment RunTimeFragment on PipelineRun { | ||||
id | |||||
status | status | ||||
stats { | stats { | ||||
... on PipelineRunStatsSnapshot { | ... on PipelineRunStatsSnapshot { | ||||
startTime | startTime | ||||
endTime | endTime | ||||
} | } | ||||
... on PythonError { | ... on PythonError { | ||||
...PythonErrorFragment | ...PythonErrorFragment | ||||
} | } | ||||
} | } | ||||
} | } | ||||
${PythonErrorInfo.fragments.PythonErrorFragment} | ${PythonErrorInfo.fragments.PythonErrorFragment} | ||||
`, | `, | ||||
RUN_ACTION_MENU_FRAGMENT: gql` | RUN_ACTION_MENU_FRAGMENT: gql` | ||||
fragment RunActionMenuFragment on PipelineRun { | fragment RunActionMenuFragment on PipelineRun { | ||||
id | |||||
runId | runId | ||||
rootRunId | rootRunId | ||||
pipelineName | pipelineName | ||||
solidSelection | solidSelection | ||||
pipelineSnapshotId | pipelineSnapshotId | ||||
mode | mode | ||||
canTerminate | canTerminate | ||||
tags { | tags { | ||||
key | key | ||||
value | value | ||||
} | } | ||||
} | } | ||||
`, | `, | ||||
}; | }; |