maintenance mode is only evaluated when triggering the cron jobs via http.
But when triggering by CLI the cron jobs should also not run with enabled maintenance mode.