Skip to content

Commit

Permalink
made environmentInfo optional
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielAronovich committed Oct 9, 2024
1 parent f3cb08b commit bd83b3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spark-ui/src/interfaces/ApplicationInfo.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { SparkApplication } from "./SparkApplications";

export interface EnvironmentInfo {
driverXmxBytes: number;
driverXmxBytes?: number;
}

export interface ApplicationInfo {
runId?: string;
info: SparkApplication;
environmentInfo: EnvironmentInfo;
environmentInfo?: EnvironmentInfo;
}
2 changes: 1 addition & 1 deletion spark-ui/src/services/SparkApi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class SparkAPI {
appId: currentApplication.id,
attempt: currentAttempt,
epocCurrentTime: Date.now(),
environmentInfo: appInfo.environmentInfo,
environmentInfo: appInfo.environmentInfo ?? { driverXmxBytes: 0 },
}),
);
} else {
Expand Down

0 comments on commit bd83b3a

Please sign in to comment.