override fun handle()

in plugin-bazel-event-service/src/main/kotlin/bazel/handlers/grpc/InvocationAttemptStartedHandler.kt [9:22]


    override fun handle(ctx: GrpcEventHandlerContext): Boolean {
        if (!ctx.event.hasInvocationAttemptStarted()) {
            return false
        }

        ctx.writer.flowStarted(ctx.streamId.invocationId, ctx.streamId.buildId)

        if (ctx.verbosity.atLeast(Verbosity.Detailed)) {
            val invocationAttemptStarted = ctx.event.invocationAttemptStarted
            ctx.writer.message("Invocation attempt #${invocationAttemptStarted.attemptNumber} started")
        }

        return true
    }