Skip to content

Commit

Permalink
Lower sensitivity of cats-effect responsiveness warning (close #1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
istreeter committed Aug 7, 2023
1 parent d29ce80 commit f2c536f
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ package com.snowplowanalytics.snowplow.loader.databricks

import cats.effect.{ExitCode, IO, IOApp}

import com.snowplowanalytics.snowplow.scalatracker.emitters.http4s.ceTracking
import scala.concurrent.duration.DurationInt

import com.snowplowanalytics.snowplow.scalatracker.emitters.http4s.ceTracking
import com.snowplowanalytics.snowplow.rdbloader.Runner

object Main extends IOApp {

override def runtimeConfig =
super.runtimeConfig.copy(cpuStarvationCheckInterval = 10.seconds)

def run(args: List[String]): IO[ExitCode] =
Runner.run[IO, Unit](
args,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ package com.snowplowanalytics.snowplow.loader.redshift
import cats.effect.{ExitCode, IO, IOApp}
import cats.effect.implicits._

import com.snowplowanalytics.snowplow.scalatracker.emitters.http4s.ceTracking
import scala.concurrent.duration.DurationInt

import com.snowplowanalytics.snowplow.scalatracker.emitters.http4s.ceTracking
import com.snowplowanalytics.snowplow.rdbloader.Runner

object Main extends IOApp {

override def runtimeConfig =
super.runtimeConfig.copy(cpuStarvationCheckInterval = 10.seconds)

def run(args: List[String]): IO[ExitCode] =
Runner.run[IO, Unit](
args,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ package com.snowplowanalytics.snowplow.loader.snowflake
import cats.effect.{ExitCode, IO, IOApp}

import com.snowplowanalytics.snowplow.scalatracker.emitters.http4s.ceTracking

import com.snowplowanalytics.snowplow.rdbloader.Runner

import scala.concurrent.duration.DurationInt

object Main extends IOApp {

override def runtimeConfig =
super.runtimeConfig.copy(cpuStarvationCheckInterval = 10.seconds)

def run(args: List[String]): IO[ExitCode] =
Runner.run[IO, Snowflake.InitQueryResult](
args,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ import com.snowplowanalytics.snowplow.rdbloader.transformer.stream.kafka.generat
import com.snowplowanalytics.snowplow.scalatracker.emitters.http4s.ceTracking
import org.apache.hadoop.conf.Configuration

import scala.concurrent.duration.DurationInt

object Main extends IOApp {

override def runtimeConfig =
super.runtimeConfig.copy(cpuStarvationCheckInterval = 10.seconds)

def run(args: List[String]): IO[ExitCode] =
Run.run[IO, KafkaCheckpointer[IO]](
args,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ import com.snowplowanalytics.snowplow.rdbloader.aws._
import com.snowplowanalytics.snowplow.rdbloader.common.cloud.{BlobStorage, Queue}
import com.snowplowanalytics.snowplow.rdbloader.transformer.stream.common.{Config, Run}
import com.snowplowanalytics.snowplow.rdbloader.transformer.stream.kinesis.generated.BuildInfo

import com.snowplowanalytics.snowplow.scalatracker.emitters.http4s.ceTracking

import scala.concurrent.duration.DurationInt

object Main extends IOApp {
final val QueueMessageGroupId = "shredding"

override def runtimeConfig =
super.runtimeConfig.copy(cpuStarvationCheckInterval = 10.seconds)

def run(args: List[String]): IO[ExitCode] =
Run.run[IO, KinesisCheckpointer[IO]](
args,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ import com.snowplowanalytics.snowplow.rdbloader.gcp.{GCS, Pubsub}
import com.snowplowanalytics.snowplow.rdbloader.transformer.stream.common.Config
import com.snowplowanalytics.snowplow.rdbloader.transformer.stream.pubsub.generated.BuildInfo
import com.snowplowanalytics.snowplow.rdbloader.transformer.stream.common.Run

import com.snowplowanalytics.snowplow.scalatracker.emitters.http4s.ceTracking

import scala.concurrent.duration.DurationInt

object Main extends IOApp {

override def runtimeConfig =
super.runtimeConfig.copy(cpuStarvationCheckInterval = 10.seconds)

implicit private def logger[F[_]: Sync]: Logger[F] = Slf4jLogger.getLogger[F]

def run(args: List[String]): IO[ExitCode] =
Expand Down

0 comments on commit f2c536f

Please sign in to comment.