title: Laravel scheduler starts running but is not finishing and not showing any errors
body: <p>i have a little problem with the laravel scheduler. I've several commands that i run every night and some run only occassionally: </p>
  
  <pre><code> $schedule-&gt;command('removeSpacesFromPhoneNumbers:now')-&gt;dailyAt('00:30')-&gt;withoutOverlapping(10);
  
   $schedule-&gt;command('setContentVisibility:setvisibility')-&gt;dailyAt('00:00')-&gt;withoutOverlapping(10);
  
   $schedule-&gt;command('sendNewUserNotifications:send')-&gt;dailyAt('01:00')-&gt;withoutOverlapping(10);
  
   $schedule-&gt;command('removeUnfinishedRegistrations:now')-&gt;monthly()-&gt;withoutOverlapping(10);
  
   $schedule-&gt;command('setInstitutionID:now')-&gt;dailyAt('01:30')-&gt;withoutOverlapping(10);
  
   $schedule-&gt;command('createAngeboteIndex:all')-&gt;dailyAt('03:00')-&gt;withoutOverlapping(10);
  
   $schedule-&gt;command('contentsToApp:now')-&gt;dailyAt('02:30')-&gt;withoutOverlapping(10);
  
   $schedule-&gt;command('calculateDateTimeTable:now')-&gt;weeklyOn(1, '3:30')-&gt;withoutOverlapping(10);
  </code></pre>
  
  <p>the scheduler runs just fine and triggers the commands at the set times but the commands do not run till the end. For example i have a command that checks all contents of a certain content type every night to figure out whether a specific content should remain public or not:</p>
  
  <pre><code>  public function handle()
  {
      Log::info("Set content visibility start");
  
      $contents = Content::All();
  
      $nowDate = date("Y-m-d");
      $nowDateTime = date("Y-m-d H:i:s");
  
      foreach ($contents as $key =&gt; $content) {
  
          if($content-&gt;tname()=='institution'){
              continue;
          }
  
          if(isset($content-&gt;public_to) || isset($content-&gt;public_from)){
  
              if(($content-&gt;public_to &lt; $nowDateTime || $content-&gt;public_from &gt; $nowDateTime) &amp;&amp; $content-&gt;view_status==1){
                  $content-&gt;view_status=0;
                  $content-&gt;save();
              }
  
              if($content-&gt;public_from &lt;= $nowDateTime &amp;&amp; $content-&gt;public_to &gt;= $nowDateTime &amp;&amp; $content-&gt;view_status==0){
                  $content-&gt;view_status=1;
                  $content-&gt;save();
              }
  
  
              $dateFrom = date("Y-m-d",strtotime($content-&gt;public_from));
              $dateTo = date("Y-m-d",strtotime($content-&gt;public_to));
  
              $to = explode("-", $dateTo);
              $from = explode("-", $dateFrom);
  
              if($to[0]=="1970" &amp;&amp; $from[0]=="1970"){
  
                  $now = explode("-",date("Y-m-d"));
  
                  if(($to[1]&gt;=$now[1] &amp;&amp; $to[2]&gt;=$now[2]) &amp;&amp; ($from[1]&lt;=$now[1] &amp;&amp; $from[2]&lt;=$now[2])){
                      $content-&gt;view_status=1;
                      $content-&gt;save();
                      continue;
                  }
                  else{
                      $content-&gt;view_status=0;
                      $content-&gt;save();
                      continue;
                  }
              }
          }
  
          if($content-&gt;datespan()!=null){
              if($content-&gt;datespan()-&gt;end &lt; $nowDate){
                 $content-&gt;view_status=0;
                 $content-&gt;save();
             }
         }
  
         /*Deactivate Contents that have an appointment at a certain date and that are expired*/
         $last = $content-&gt;lastAppointment();
         if(isset($last) &amp;&amp; $last-&gt;date&lt;$nowDate){
          $content-&gt;view_status=0;
          $content-&gt;save();
      }
  
      $lf=$content-&gt;getProperty('offer_laufender_einstieg');
      if($lf == "" || $lf==false){
          $first = $content-&gt;firstAppointment();
          if(isset($first) &amp;&amp; $first-&gt;date&lt;=$nowDate){
              $content-&gt;view_status=0;
              $content-&gt;save();
          }
      }
  }
  Log::info("Set content visibility finished");
  </code></pre>
  
  <p>}</p>
  
  <p>as you can see i added a Log-entry at the beginning and at the end of each run. My Log shows the Entry at beginning but never shows the entry that marks the end of the command. When i run the command without the scheduler everything works just fine.</p>
  
  <p>What do i miss here? Is there an issue with my understanding how the commands need to be scheduled? Help is very much appreciated!</p>
  
  <p>Kind regards</p>
  
  <p>Alex</p>