Skip to content

Commit d410b62

Browse files
authored
Increase the polling time for job run status (#1451)
## Changes We were not providing any timeouts and the SDK was falling back to 10min, which is not enough for many job runs. ## Tests Manually and existing tests
1 parent 3c3fc9c commit d410b62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/databricks-vscode/src/bundle/run/JobRunStatus.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {Event, EventEmitter} from "vscode";
88
import {AuthProvider} from "../../configuration/auth/AuthProvider";
99
import {onError} from "../../utils/onErrorDecorator";
1010
import {BundleRunStatus} from "./BundleRunStatus";
11+
import {Time, TimeUnits} from "@databricks/databricks-sdk";
1112

1213
export class JobRunStatus extends BundleRunStatus {
1314
readonly type = "jobs";
@@ -48,6 +49,7 @@ export class JobRunStatus extends BundleRunStatus {
4849
await (
4950
await client.jobs.getRun({run_id: parseInt(this.runId)})
5051
).wait({
52+
timeout: new Time(48, TimeUnits.hours),
5153
onProgress: async (progress) => {
5254
this.data = progress;
5355
this.onDidChangeEmitter.fire();

0 commit comments

Comments
 (0)