Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { PollingSet } from '../../../shared/utilities/pollingSet'
import { SmusAuthenticationProvider } from '../../auth/providers/smusAuthenticationProvider'
import { SmusUtils } from '../../shared/smusUtils'
import { getIcon } from '../../../shared/icons'
import { PENDING_NODE_POLLING_INTERVAL_MS } from './utils'

export class SageMakerUnifiedStudioSpacesParentNode implements TreeNode {
public readonly id = 'smusSpacesParentNode'
Expand All @@ -29,7 +30,10 @@ export class SageMakerUnifiedStudioSpacesParentNode implements TreeNode {
private readonly onDidChangeEmitter = new vscode.EventEmitter<void>()
public readonly onDidChangeTreeItem = this.onDidChangeEmitter.event
public readonly onDidChangeChildren = this.onDidChangeEmitter.event
public readonly pollingSet: PollingSet<string> = new PollingSet(5, this.updatePendingNodes.bind(this))
public readonly pollingSet: PollingSet<string> = new PollingSet(
PENDING_NODE_POLLING_INTERVAL_MS,
this.updatePendingNodes.bind(this)
)
private spaceAwsAccountRegion: string | undefined

public constructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ import {
} from './types'
import { DataZoneConnection } from '../../shared/client/datazoneClient'

/**
* Polling interval in milliseconds for checking space status updates
*/
// eslint-disable-next-line @typescript-eslint/naming-convention
export const PENDING_NODE_POLLING_INTERVAL_MS = 5000

/**
* Gets the label for a node based on its data
*/
Expand Down
Loading