File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
packages/core/src/sagemakerunifiedstudio/explorer/nodes Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { PollingSet } from '../../../shared/utilities/pollingSet'
1818import { SmusAuthenticationProvider } from '../../auth/providers/smusAuthenticationProvider'
1919import { SmusUtils } from '../../shared/smusUtils'
2020import { getIcon } from '../../../shared/icons'
21+ import { PENDING_NODE_POLLING_INTERVAL_MS } from './utils'
2122
2223export class SageMakerUnifiedStudioSpacesParentNode implements TreeNode {
2324 public readonly id = 'smusSpacesParentNode'
@@ -29,7 +30,10 @@ export class SageMakerUnifiedStudioSpacesParentNode implements TreeNode {
2930 private readonly onDidChangeEmitter = new vscode . EventEmitter < void > ( )
3031 public readonly onDidChangeTreeItem = this . onDidChangeEmitter . event
3132 public readonly onDidChangeChildren = this . onDidChangeEmitter . event
32- public readonly pollingSet : PollingSet < string > = new PollingSet ( 5 , this . updatePendingNodes . bind ( this ) )
33+ public readonly pollingSet : PollingSet < string > = new PollingSet (
34+ PENDING_NODE_POLLING_INTERVAL_MS ,
35+ this . updatePendingNodes . bind ( this )
36+ )
3337 private spaceAwsAccountRegion : string | undefined
3438
3539 public constructor (
Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ import {
2020} from './types'
2121import { DataZoneConnection } from '../../shared/client/datazoneClient'
2222
23+ /**
24+ * Polling interval in milliseconds for checking space status updates
25+ */
26+ export const PENDING_NODE_POLLING_INTERVAL_MS = 5000
27+
2328/**
2429 * Gets the label for a node based on its data
2530 */
You can’t perform that action at this time.
0 commit comments