Changeset View
Changeset View
Standalone View
Standalone View
js_modules/dagit/src/pipelines/PipelineOverviewRoot.tsx
Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Lines | const SecondaryContainer = ({children}: {children: React.ReactNode}) => ( | ||||
<div style={{maxWidth: 600, padding: 20, flex: 1}}> | <div style={{maxWidth: 600, padding: 20, flex: 1}}> | ||||
<div style={{maxWidth: '25vw'}}>{children}</div> | <div style={{maxWidth: '25vw'}}>{children}</div> | ||||
</div> | </div> | ||||
); | ); | ||||
const OverviewScheduleFragment = gql` | const OverviewScheduleFragment = gql` | ||||
fragment OverviewScheduleFragment on ScheduleDefinition { | fragment OverviewScheduleFragment on ScheduleDefinition { | ||||
__typename | __typename | ||||
id | |||||
name | name | ||||
scheduleState { | scheduleState { | ||||
id | |||||
runsCount | runsCount | ||||
lastRuns: runs(limit: 1) { | lastRuns: runs(limit: 1) { | ||||
id | |||||
stats { | stats { | ||||
... on PipelineRunStatsSnapshot { | ... on PipelineRunStatsSnapshot { | ||||
endTime | endTime | ||||
} | } | ||||
} | } | ||||
} | } | ||||
runs(limit: 10) { | runs(limit: 10) { | ||||
id | |||||
runId | runId | ||||
pipelineName | pipelineName | ||||
status | status | ||||
} | } | ||||
status | status | ||||
} | } | ||||
} | } | ||||
`; | `; | ||||
export const PIPELINE_OVERVIEW_QUERY = gql` | export const PIPELINE_OVERVIEW_QUERY = gql` | ||||
query PipelineOverviewQuery($pipelineSelector: PipelineSelector!, $limit: Int!) { | query PipelineOverviewQuery($pipelineSelector: PipelineSelector!, $limit: Int!) { | ||||
pipelineSnapshotOrError(activePipelineSelector: $pipelineSelector) { | pipelineSnapshotOrError(activePipelineSelector: $pipelineSelector) { | ||||
... on PipelineSnapshot { | ... on PipelineSnapshot { | ||||
id | |||||
name | name | ||||
description | description | ||||
solidHandles(parentHandleID: "") { | solidHandles(parentHandleID: "") { | ||||
solid { | solid { | ||||
name | name | ||||
...PipelineGraphSolidFragment | ...PipelineGraphSolidFragment | ||||
} | } | ||||
} | } | ||||
runs(limit: $limit) { | runs(limit: $limit) { | ||||
...RunActionMenuFragment | ...RunActionMenuFragment | ||||
...RunTimeFragment | ...RunTimeFragment | ||||
id | |||||
assets { | assets { | ||||
key { | key { | ||||
path | path | ||||
} | } | ||||
} | } | ||||
} | } | ||||
schedules { | schedules { | ||||
id | |||||
...OverviewScheduleFragment | ...OverviewScheduleFragment | ||||
} | } | ||||
} | } | ||||
... on PipelineNotFoundError { | ... on PipelineNotFoundError { | ||||
message | message | ||||
} | } | ||||
... on PipelineSnapshotNotFoundError { | ... on PipelineSnapshotNotFoundError { | ||||
message | message | ||||
Show All 11 Lines |