Skip to content

Commit 39ef1a6

Browse files
tchiotludofhussonnois
authored andcommitted
feat(cloud): runId could be a Long
1 parent 52465f1 commit 39ef1a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/io/kestra/plugin/dbt/cloud/CheckStatus.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public CheckStatus.Output run(RunContext runContext) throws Exception {
101101
Logger logger = runContext.logger();
102102

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

106106
// wait for end
107107
RunResponse finalRunResponse = Await.until(
@@ -187,7 +187,7 @@ private void logSteps(Logger logger, RunResponse runResponse) {
187187
}
188188
}
189189

190-
private Optional<RunResponse> fetchRunResponse(RunContext runContext, Integer id, Boolean debug) throws IllegalVariableEvaluationException {
190+
private Optional<RunResponse> fetchRunResponse(RunContext runContext, Long id, Boolean debug) throws IllegalVariableEvaluationException {
191191
return this
192192
.request(
193193
runContext,
@@ -212,7 +212,7 @@ private Optional<RunResponse> fetchRunResponse(RunContext runContext, Integer id
212212
.getBody();
213213
}
214214

215-
private Path downloadArtifacts(RunContext runContext, Integer runId, String path) throws IllegalVariableEvaluationException, IOException {
215+
private Path downloadArtifacts(RunContext runContext, Long runId, String path) throws IllegalVariableEvaluationException, IOException {
216216
String artifact = this
217217
.request(
218218
runContext,

0 commit comments

Comments
 (0)