Cron error: LogicException : Render context is empty
$view = \Drupal::service('renderer')-&gt;renderPlain($view);


instead of 

$view = \Drupal::service('renderer')-&gt;render($view);


was the solution!
Thanks to @Clive