Skip to content

Commit

Permalink
Merge pull request #18010 from davelopez/24.0_tweak_polling_intervals
Browse files Browse the repository at this point in the history
[24.0] Reduce notifications polling frequency
  • Loading branch information
jdavcs authored Apr 17, 2024
2 parents 33538be + af2c2ed commit f1b934b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/stores/notificationsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { mergeObjectListsById } from "@/utils/utils";

import { useBroadcastsStore } from "./broadcastsStore";

const ACTIVE_POLLING_INTERVAL = 5000;
const INACTIVE_POLLING_INTERVAL = 30000;
const ACTIVE_POLLING_INTERVAL = 30000; // 30 seconds
const INACTIVE_POLLING_INTERVAL = ACTIVE_POLLING_INTERVAL * 20; // 10 minutes

export const useNotificationsStore = defineStore("notificationsStore", () => {
const { startWatchingResource: startWatchingNotifications } = useResourceWatcher(getNotificationStatus, {
Expand Down

0 comments on commit f1b934b

Please sign in to comment.