Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void decrementAndPop(FlowInterface flow, AbstractJdbcExecutionQueuedStora
int newLimit = fetchOne(dslContext, flow).map(
concurrencyLimit -> {
int decremented = concurrencyLimit.getRunning() == 0 ? 0 : concurrencyLimit.getRunning() - 1;
update(dslContext, concurrencyLimit.withRunning(decremented));
save(dslContext, concurrencyLimit.withRunning(decremented));
return decremented;
}
).orElse(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.util.function.BiConsumer;

public abstract class AbstractJdbcExecutionQueuedStorage extends AbstractJdbcRepository {
protected static final Field<String> VALUE_FIELD = field("value", String.class);
protected io.kestra.jdbc.AbstractJdbcRepository<ExecutionQueued> jdbcRepository;

public AbstractJdbcExecutionQueuedStorage(io.kestra.jdbc.AbstractJdbcRepository<ExecutionQueued> jdbcRepository) {
Expand Down
Loading