I'd probably prefer a simple if:

    val interval = routeeProvider.settings.retryLookupInterval
    if (interval.isFinite) // Retries enabled
       retryTask = Some(context.system.scheduler.schedule(interval, interval, self, RetryTick)(context.dispatcher))