Hi,

Im unsure how these cron jobs work, not how to add them, but how they work inside.

If a cron job is running, and another one is startet (time or manually), will it start or not? i need to be able to have it wait finished a job before start another, and im unsure if its runs multiple of same job same time as im running some php scrapers, is the job locked until finished or something?.

Cancel job - why isnt there a cancel job button? lets say its a 30 min cron job, but log text says some fault, and i wish to cancel it, instead waiting it run 30 mins for nothing, is it possible to make such a chance quick in the source?.

Thanks in advance.

    aaP_privat
    Hi, the panel uses the system's cron program to add tasks that run automatically
    Cron runs according to time, you can check the log and running time to judge whether it is running. Tasks can run concurrently.
    No one knows what task you added so there is no cancellation. You can directly find the process of the relevant task content and kill it, then you can cancel it

      9 days later

      aaPanel_Kern i wrote in the php file to look for the string in linux, so a little hax got it working as i wanted.

      I installed a PHP version just for this, and enabled exec (the file is not accessable from www) and put this incase others need:

      `
      function checkRunning($scraper)
      {
      exec("ps fauxww | grep -A 1 'cron'", $output);
      $found = 0;


      foreach($output as $line)
      {
          if(str_contains($line, $scraper))
          {
              $found++;
          }
      }
      
      if($found > 1)
          return true;
      else
          return false;

      }
      `

      6 days later
      Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com