From 99959fcfca7d6f7d75b8ce0cb796a2bde920d239 Mon Sep 17 00:00:00 2001 From: chausman <chausman@nrao.edu> Date: Wed, 12 Jul 2023 11:28:16 -0600 Subject: [PATCH] increase update polling time to 10 seconds --- .../src/app/workspaces/services/polling-data-updater.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/app/workspaces/services/polling-data-updater.service.ts b/apps/web/src/app/workspaces/services/polling-data-updater.service.ts index d04ced647..e0f7c03b8 100644 --- a/apps/web/src/app/workspaces/services/polling-data-updater.service.ts +++ b/apps/web/src/app/workspaces/services/polling-data-updater.service.ts @@ -40,7 +40,7 @@ export class PollingDataUpdaterService implements OnDestroy { * @return Observable<JsonObject> Data poller observable */ public getDataPoller$(url: string): Observable<JsonObject> { - return timer(1, 3000).pipe( + return timer(1, 10000).pipe( switchMap(() => this.httpClient.get<JsonObject>(url)), retry(), takeUntil(this.stopPolling), -- GitLab