Git Product home page Git Product logo

Comments (3)

liebig avatar liebig commented on June 26, 2024

Hi ArberD,

Thank you for using Cron. I am sorry that you had trouble with your job execution. Your expression looks good. So you checked the cron_manager database table and there is an entry from today 11:25 but no executed jobs with this manager id in the cron_job table at the cron_manager_id field?

I tested a similar expression and unfortunately it worked for me:
routes.php

Route::get('/crontest', function () {
        Cron::add('example1', '35 13 * * 4', function() {

            return 'Example 1 ran';
        });     

    $report = \Liebig\Cron\Cron::run();
    var_dump($report);
});

Output at 13:35, today:

array (size=6)
  'rundate' => int 1412249701
  'inTime' => boolean true
  'runtime' => float 0.0030450820922852
  'errors' => int 1
  'crons' => 
    array (size=1)
      0 => 
        array (size=3)
          'name' => string 'example1' (length=8)
          'return' => string 'Example 1 ran' (length=13)
          'runtime' => float 1.5020370483398E-5
  'lastRun' => 
    array (size=2)
      'rundate' => string '2014-10-02 13:34:01' (length=19)
      'runtime' => string '0.00040197372436523' (length=19)

Can you please test again? When nothing helps, please provide me the database cron_manager and cron_job table entries at your expression date?

from cron.

ArberD avatar ArberD commented on June 26, 2024

Hello,

Thanks for your quick reply. This is so embarrassing - my Laravel timezone was different from system timezone. I set the correct timezone and all is good now.

Thanks again for this awesome package and your support

from cron.

liebig avatar liebig commented on June 26, 2024

Hi ArberD,

Thank you for your reply. You are welcome.

from cron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.