Cron always disabled in 1.0RC3 - ignores env var


#1

I’ve tried launching with

DRONE_CRON_DISABLED="false"

and

DRONE_CRON_DISABLED="false"
DRONE_CRON_INTERVAL="5m"

and I keep getting

{"level":"info","msg":"main: cron schedule disabled","time":"[snip]"}

#2

Base on your example output, the cron schedule is enabled because we see the interval in the logs (when cron is disabled no interval is printed). The message itself was incorrect and prints disabled instead of enabled.

		if config.Cron.Disabled {
			logrus.Info("main: cron schedule disabled")
			return nil
		}

		logrus.WithField(
			"interval", config.Cron.Interval,
-		).Infoln("main: cron schedule disabled")
+		).Infoln("main: cron schedule enabled")