Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: 4.0.0alpha2, 4.0.0beta1, 4.0.2
    • Fix Version/s: 4.3.0alpha1, Customer request
    • Component/s: Cronjobs, Misc
    • Labels:
      None

      Description

      To get an information about how long the execution of a cronjob takes it would be a good idea to add timestamps to runcronjobs.php, e.g.

      +if ( !$isQuiet )
      + $cli->notice( "+++ Start: " . date("m.d.y G:i:s T") );

      $ini =& eZINI::instance( 'cronjob.ini' );

      ...

      +if ( !$isQuiet )
      + $cli->notice( "+++ Stop: " . date("m.d.y G:i:s T") );
      +
      $script->shutdown();

        Activity

        Hide
        Gaetano Giunta added a comment -

        If you run runcronjobs.php with the -d option, you get a lot of info,with some timing too.
        Would that server your needs?

        Show
        Gaetano Giunta added a comment - If you run runcronjobs.php with the -d option, you get a lot of info,with some timing too. Would that server your needs?
        Hide
        Alexander Block added a comment -

        Well, I think this will produce too much output. The script should run "silent" and only print when it started and stopped it work - also when used from within the web browser.

        Show
        Alexander Block added a comment - Well, I think this will produce too much output. The script should run "silent" and only print when it started and stopped it work - also when used from within the web browser.
        Hide
        (inactive) Gunnstein Lye added a comment -

        Implemented in
        trunk (4.3.0alpha1) rev. 24228

        Show
        (inactive) Gunnstein Lye added a comment - Implemented in trunk (4.3.0alpha1) rev. 24228
        Hide
        ezrobot added a comment -

        This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

        Show
        ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          People

          • Assignee:
            (inactive) Gunnstein Lye
            Reporter:
            Alexander Block
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: