mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 09:29:05 +08:00
Add TypeScript and HTML linting to Travis lint job (#7294)
This commit is contained in:
@@ -127,7 +127,7 @@ export interface RayletInfoResponse {
|
||||
actorTitle: string;
|
||||
requiredResources: { [key: string]: number };
|
||||
state: -1;
|
||||
invalidStateType?: 'infeasibleActor' | 'pendingActor';
|
||||
invalidStateType?: "infeasibleActor" | "pendingActor";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ class Dashboard extends React.Component<
|
||||
{ label: "Tune", component: Tune }
|
||||
];
|
||||
|
||||
// if Tune information is not avaliable, remove Tune tab from the dashboard
|
||||
// if Tune information is not available, remove Tune tab from the dashboard
|
||||
if (!tuneAvailability) {
|
||||
tabs.splice(3);
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import Collapse from "@material-ui/core/Collapse";
|
||||
import orange from "@material-ui/core/colors/orange";
|
||||
import { Theme } from "@material-ui/core/styles/createMuiTheme";
|
||||
import createStyles from "@material-ui/core/styles/createStyles";
|
||||
import withStyles, { WithStyles } from "@material-ui/core/styles/withStyles";
|
||||
@@ -7,13 +9,11 @@ import {
|
||||
checkProfilingStatus,
|
||||
CheckProfilingStatusResponse,
|
||||
getProfilingResultURL,
|
||||
launchKillActor,
|
||||
launchProfiling,
|
||||
RayletInfoResponse,
|
||||
launchKillActor
|
||||
RayletInfoResponse
|
||||
} from "../../../api";
|
||||
import Actors from "./Actors";
|
||||
import Collapse from "@material-ui/core/Collapse";
|
||||
import orange from '@material-ui/core/colors/orange';
|
||||
|
||||
const styles = (theme: Theme) =>
|
||||
createStyles({
|
||||
@@ -289,11 +289,10 @@ class Actor extends React.Component<Props & WithStyles<typeof styles>, State> {
|
||||
)
|
||||
)}
|
||||
</React.Fragment>
|
||||
) : actor.invalidStateType === 'infeasibleActor' ? (
|
||||
) : actor.invalidStateType === "infeasibleActor" ? (
|
||||
<span className={classes.invalidStateTypeInfeasible}>
|
||||
{actor.actorTitle} is infeasible.
|
||||
(Infeasible actor means an actor cannot be created because
|
||||
Ray cluster cannot satisfy resources requirement).
|
||||
{actor.actorTitle} is infeasible. (This actor cannot be created
|
||||
because the Ray cluster cannot satisfy its resource requirements.)
|
||||
</span>
|
||||
) : (
|
||||
<span className={classes.invalidStateTypePendingActor}>
|
||||
|
||||
Reference in New Issue
Block a user