File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
airbyte-workload-api-server/src/main
kotlin/io/airbyte/workload/api Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ import io.airbyte.workload.metrics.StatsDRegistryConfigurer.Companion.WORKLOAD_I
20
20
import io.micronaut.http.HttpStatus
21
21
import io.micronaut.http.annotation.Controller
22
22
import io.micronaut.http.annotation.Status
23
+ import io.micronaut.scheduling.TaskExecutors
24
+ import io.micronaut.scheduling.annotation.ExecuteOn
23
25
import io.micronaut.security.annotation.Secured
24
26
import io.micronaut.security.rules.SecurityRule
25
27
import io.swagger.v3.oas.annotations.Operation
@@ -38,6 +40,7 @@ import javax.ws.rs.Produces
38
40
39
41
@Controller(" /api/v1/workload" )
40
42
@Secured(SecurityRule .IS_AUTHENTICATED )
43
+ @ExecuteOn(TaskExecutors .IO )
41
44
open class WorkloadApi (
42
45
private val workloadHandler : WorkloadHandler ,
43
46
private val workloadService : WorkloadService ,
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ micronaut:
2
2
application :
3
3
name : airbyte-workload-api-server
4
4
executors :
5
- health :
5
+ io :
6
6
type : fixed
7
- n-threads : ${HEALTH_TASK_EXECUTOR_THREADS :10}
7
+ n-threads : ${IO_TASK_EXECUTOR_THREADS :10} # Match the data source max pool size below
8
8
metrics :
9
9
enabled : true
10
10
export :
You can’t perform that action at this time.
0 commit comments