diff --git a/cron/src/main/scala/com/criteo/cuttle/cron/CronProject.scala b/cron/src/main/scala/com/criteo/cuttle/cron/CronProject.scala index 94a49d8ee..55c88475f 100644 --- a/cron/src/main/scala/com/criteo/cuttle/cron/CronProject.scala +++ b/cron/src/main/scala/com/criteo/cuttle/cron/CronProject.scala @@ -107,9 +107,9 @@ object CronProject { ) } - private[CronProject] val port = 8888 - private[CronProject] val databaseConfig = DatabaseConfig.fromEnv - private[CronProject] val retryStrategy = RetryStrategy.SimpleRetryStategy(1.minute) + private[CronProject] lazy val port = 8888 + private[CronProject] lazy val databaseConfig = DatabaseConfig.fromEnv + private[CronProject] lazy val retryStrategy = RetryStrategy.SimpleRetryStategy(1.minute) implicit def projectEncoder = new Encoder[CronProject] { override def apply(project: CronProject) =