perf(team): extend task log activity pulse
This commit is contained in:
parent
abe26ddcc4
commit
9b5b4023d2
2 changed files with 3 additions and 3 deletions
|
|
@ -88,7 +88,7 @@ const TEAM_CHANGE_EVENT_WARN_THROTTLE_MS = 2_000;
|
|||
const TEAM_VISIBLE_IDLE_WATCHDOG_POLL_MS = 10_000;
|
||||
const TEAM_VISIBLE_IDLE_WATCHDOG_STALE_MS = 30_000;
|
||||
const TEAM_MESSAGE_FALLBACK_POLL_MS = 10_000;
|
||||
const TASK_LOG_ACTIVITY_PULSE_MS = 2_500;
|
||||
const TASK_LOG_ACTIVITY_PULSE_MS = 3_500;
|
||||
const ACTIVE_PROVISIONING_STATES_FOR_PROCESS_LITE: ReadonlySet<TeamProvisioningProgress['state']> =
|
||||
new Set(['validating', 'spawning', 'configuring', 'assembling', 'finalizing', 'verifying']);
|
||||
export const TEAM_PROCESS_LITE_FANOUT_STORAGE_KEY = 'team:processLiteFanout';
|
||||
|
|
|
|||
|
|
@ -1614,7 +1614,7 @@ describe('team change throttling', () => {
|
|||
'task-live': true,
|
||||
});
|
||||
|
||||
await vi.advanceTimersByTimeAsync(2499);
|
||||
await vi.advanceTimersByTimeAsync(3499);
|
||||
expect(useStore.getState().activeTaskLogActivityByTeam['my-team']).toEqual({
|
||||
'task-live': true,
|
||||
});
|
||||
|
|
@ -1750,7 +1750,7 @@ describe('team change throttling', () => {
|
|||
|
||||
expect(activitySnapshots).toEqual([{ 'task-live': true }]);
|
||||
|
||||
await vi.advanceTimersByTimeAsync(2499);
|
||||
await vi.advanceTimersByTimeAsync(3499);
|
||||
expect(refreshTeamDataSpy).not.toHaveBeenCalled();
|
||||
expect(useStore.getState().activeTaskLogActivityByTeam['my-team']).toEqual({
|
||||
'task-live': true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue