Skip to content

Commit

Permalink
fix(cloud): allow use to setup poll frequency (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
aballiet authored Sep 3, 2023
1 parent a6d25c4 commit c846cf9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/io/kestra/plugin/dbt/cloud/TriggerRun.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ public class TriggerRun extends AbstractDbtCloud implements RunnableTask<Trigger
@Builder.Default
Boolean wait = true;

@Schema(
title = "Specify frequency for job state check API calls"
)
@PluginProperty(dynamic = false)
@Builder.Default
Duration pollFrequency = Duration.ofSeconds(5);

@Schema(
title = "The max total wait duration"
)
Expand Down Expand Up @@ -260,7 +267,7 @@ public TriggerRun.Output run(RunContext runContext) throws Exception {

return null;
}),
Duration.ofSeconds(1),
this.pollFrequency,
this.maxDuration
);

Expand Down

0 comments on commit c846cf9

Please sign in to comment.