Skip to content

Commit

Permalink
Merge pull request #2573 from andrewbaldwin44/bugfix/fix-spawning
Browse files Browse the repository at this point in the history
Fix Spwaning State Never Updates to Running
  • Loading branch information
cyberw authored Jan 30, 2024
2 parents a4ab5a4 + 5b5b1d8 commit 8af3493
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 36 deletions.
1 change: 1 addition & 0 deletions locust/webui/dist/assets/auth-2586839b.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion locust/webui/dist/assets/auth-5e21717c.js.map

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locust/webui/dist/auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="theme-color" content="#000000" />

<title>Locust</title>
<script type="module" crossorigin src="/assets/index-a83a5dd9.js"></script>
<script type="module" crossorigin src="/assets/index-833f9228.js"></script>
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion locust/webui/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="theme-color" content="#000000" />

<title>Locust</title>
<script type="module" crossorigin src="/assets/index-a83a5dd9.js"></script>
<script type="module" crossorigin src="/assets/index-833f9228.js"></script>
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion locust/webui/src/components/Layout/Navbar/SwarmMonitor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function SwarmMonitor({
<Typography variant='button'>Status</Typography>
<Typography variant='button'>{state}</Typography>
</Box>
{state === SWARM_STATE.RUNNING && (
{(state === SWARM_STATE.RUNNING || state === SWARM_STATE.SPAWNING) && (
<>
<Divider flexItem orientation='vertical' />
<Box sx={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}>
Expand Down
5 changes: 1 addition & 4 deletions locust/webui/src/hooks/useSwarmUi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ export default function useSwarmUi() {
};

useEffect(() => {
if (
statsData &&
(statsData.state === SWARM_STATE.STOPPED || statsData.state === SWARM_STATE.SPAWNING)
) {
if (statsData) {
setSwarm({ state: statsData.state });
}
}, [statsData && statsData.state]);
Expand Down

0 comments on commit 8af3493

Please sign in to comment.