Skip to content

Commit

Permalink
feat(cloud): runId could be a Long
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo authored and fhussonnois committed Sep 12, 2024
1 parent 52465f1 commit 39ef1a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/io/kestra/plugin/dbt/cloud/CheckStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public CheckStatus.Output run(RunContext runContext) throws Exception {
Logger logger = runContext.logger();

// Check rendered runId provided is an Integer
Integer runIdRendered = Integer.parseInt(runContext.render(this.runId));
Long runIdRendered = Long.parseLong(runContext.render(this.runId));

// wait for end
RunResponse finalRunResponse = Await.until(
Expand Down Expand Up @@ -187,7 +187,7 @@ private void logSteps(Logger logger, RunResponse runResponse) {
}
}

private Optional<RunResponse> fetchRunResponse(RunContext runContext, Integer id, Boolean debug) throws IllegalVariableEvaluationException {
private Optional<RunResponse> fetchRunResponse(RunContext runContext, Long id, Boolean debug) throws IllegalVariableEvaluationException {
return this
.request(
runContext,
Expand All @@ -212,7 +212,7 @@ private Optional<RunResponse> fetchRunResponse(RunContext runContext, Integer id
.getBody();
}

private Path downloadArtifacts(RunContext runContext, Integer runId, String path) throws IllegalVariableEvaluationException, IOException {
private Path downloadArtifacts(RunContext runContext, Long runId, String path) throws IllegalVariableEvaluationException, IOException {
String artifact = this
.request(
runContext,
Expand Down

0 comments on commit 39ef1a6

Please sign in to comment.