Support » Plugin: Get URL Cron » Crons are not run regularly

  • Domenik

    (@onyxdevelopment)


    Hello,

    we have several crons, one every hour and the other every 2 minutes.

    However, until the next run, the following is displayed:
    -1 d : 23 hrs: 51 min: 43 sec

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author berkux

    (@berkux)

    Hello,

    Ok, ì‘ll check that. My first guess is, that this a wrong calc of the next runtime. The job itself should be executed as defined. Is that the case?

    Bernhard

    Thread Starter Domenik

    (@onyxdevelopment)

    No, the crons will then no longer be executed

    Plugin Author berkux

    (@berkux)

    Hi,

    I checked that and found out, that wp_next_scheduled can give dates in the past for the next run of a job. As this is a wp native function I can’t change that.
    The negative date is given on only one load of the page, if you reload it the normal next time should be displayed.
    So on a website with few traffic this might happen.

    <<No, the crons will then no longer be executed>>
    the cronjobs will only run, if there is some traffic on WP, see
    https://developer.wordpress.org/plugins/cron/
    for details.
    So a 2 min cronjob might be too short. BTW: Why do you use a 2 min cronjob?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.