Skip to content

Commit

Permalink
Add @ExecuteOn(IO) to Token and Service controllers
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
pditommaso committed Jul 24, 2023
1 parent 621334d commit e0c95a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import io.micronaut.http.annotation.Controller
import io.micronaut.http.annotation.Get
import io.micronaut.http.annotation.Post
import io.micronaut.http.server.util.HttpClientAddressResolver
import io.micronaut.scheduling.TaskExecutors
import io.micronaut.scheduling.annotation.ExecuteOn
import io.seqera.wave.api.SubmitContainerTokenRequest
import io.seqera.wave.api.SubmitContainerTokenResponse
import io.seqera.wave.service.inspect.ContainerInspectService
Expand Down Expand Up @@ -49,6 +51,7 @@ import static io.seqera.wave.util.SpackHelper.prependBuilderTemplate
@Slf4j
@CompileStatic
@Controller("/")
@ExecuteOn(TaskExecutors.IO)
class ContainerTokenController {

@Inject HttpClientAddressResolver addressResolver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import io.micronaut.context.annotation.Value
import io.micronaut.http.HttpResponse
import io.micronaut.http.annotation.Controller
import io.micronaut.http.annotation.Get
import io.micronaut.scheduling.TaskExecutors
import io.micronaut.scheduling.annotation.ExecuteOn
import io.seqera.wave.api.ServiceInfo
import io.seqera.wave.api.ServiceInfoResponse
import io.seqera.wave.util.BuildInfo
Expand All @@ -17,6 +19,7 @@ import io.seqera.wave.util.BuildInfo
*/
@Slf4j
@Controller("/")
@ExecuteOn(TaskExecutors.IO)
class ServiceInfoController {

@Value('${wave.landing.url}')
Expand Down

0 comments on commit e0c95a0

Please sign in to comment.