mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Infra UI] Correctly interpret the resetting
and reverting
job states (#129570)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
ef5637030f
commit
b62c81506f
4 changed files with 12 additions and 4 deletions
|
@ -47,6 +47,7 @@ const datafeedStateRT = rt.keyof({
|
|||
'': null,
|
||||
});
|
||||
|
||||
// this is the union of the ML API's job state and block reasons
|
||||
const jobStateRT = rt.keyof({
|
||||
closed: null,
|
||||
closing: null,
|
||||
|
@ -54,6 +55,8 @@ const jobStateRT = rt.keyof({
|
|||
failed: null,
|
||||
opened: null,
|
||||
opening: null,
|
||||
resetting: null,
|
||||
reverting: null,
|
||||
});
|
||||
|
||||
const jobAnalysisConfigRT = rt.partial({
|
||||
|
|
|
@ -225,8 +225,9 @@ const getJobStatus =
|
|||
) {
|
||||
return 'stopped';
|
||||
} else if (
|
||||
jobSummary.jobState === 'opening' &&
|
||||
jobSummary.awaitingNodeAssignment === false
|
||||
(jobSummary.jobState === 'opening' && jobSummary.awaitingNodeAssignment === false) ||
|
||||
jobSummary.jobState === 'resetting' ||
|
||||
jobSummary.jobState === 'reverting'
|
||||
) {
|
||||
return 'initializing';
|
||||
} else if (
|
||||
|
|
|
@ -47,6 +47,7 @@ const datafeedStateRT = rt.keyof({
|
|||
'': null,
|
||||
});
|
||||
|
||||
// this is the union of the ML API's job state and block reasons
|
||||
const jobStateRT = rt.keyof({
|
||||
closed: null,
|
||||
closing: null,
|
||||
|
@ -54,6 +55,8 @@ const jobStateRT = rt.keyof({
|
|||
failed: null,
|
||||
opened: null,
|
||||
opening: null,
|
||||
resetting: null,
|
||||
reverting: null,
|
||||
});
|
||||
|
||||
const jobCategorizationStatusRT = rt.keyof({
|
||||
|
|
|
@ -225,8 +225,9 @@ const getJobStatus =
|
|||
) {
|
||||
return 'stopped';
|
||||
} else if (
|
||||
jobSummary.jobState === 'opening' &&
|
||||
jobSummary.awaitingNodeAssignment === false
|
||||
(jobSummary.jobState === 'opening' && jobSummary.awaitingNodeAssignment === false) ||
|
||||
jobSummary.jobState === 'resetting' ||
|
||||
jobSummary.jobState === 'reverting'
|
||||
) {
|
||||
return 'initializing';
|
||||
} else if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue