WARNING = 'Warning',
UNKNOWN = 'Unknown',
REUSED = 'Reused',
+ CANCELLING = 'Cancelling',
}
export const getProcess = (uuid: string) => (resources: ResourcesState): Process | undefined => {
color = theme.customs.colors.red900;
running = true;
break;
+ case ProcessStatus.CANCELLING:
+ color = theme.customs.colors.red900;
+ running = true;
+ break;
case ProcessStatus.CANCELLED:
case ProcessStatus.FAILED:
color = theme.customs.colors.red900;
return ProcessStatus.QUEUED;
case container?.state === ContainerState.RUNNING:
+ if (container?.priority === 0) {
+ return ProcessStatus.CANCELLING;
+ }
if (!!container?.runtimeStatus.error) {
return ProcessStatus.FAILING;
}
fontSize: '0.78rem',
},
cancelButton: {
- color: theme.customs.colors.red900,
- borderColor: theme.customs.colors.red900,
+ color: theme.palette.common.white,
+ backgroundColor: theme.customs.colors.red900,
'&:hover': {
- borderColor: theme.customs.colors.red900,
+ backgroundColor: theme.customs.colors.red900,
},
'& svg': {
fontSize: '22px',
{isProcessCancelable(process) &&
<Button
data-cy="process-cancel-button"
- variant="outlined"
+ variant="contained"
size="small"
color="primary"
className={classNames(classes.actionButton, classes.cancelButton)}