• Resolved maximequinzin

    (@maximequinzin)


    Hi I run 2 crons with you plugin.
    The first one is run once a day since 2021 november, no problem.
    The second one runs every 30 minutes, and from time to time, my job is no more scheduled (works for some weeks and then nothing).

    Do you have an idea of the problem, or maybe a way to investigate ?

    Thank you very much.

    WP is 5.9, Get URL Cron is 1.4.5

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

    (@berkux)

    Hi,

    thank you for using my plugin.
    Maybe it is like this:
    The cronjobs are scheduled, but not executed.
    If you havbe the plugin / cronjobs on a website with no or very few traffic, the cronjobs are not executed.
    Wordpress-Cronjobs are executed when a request is done. This request can be a ordinary “get the start page” or whatever.
    So if you have no traffic on the site, there will be no cronjob-executions.
    IS this the case?

    Bernhard

    Thread Starter maximequinzin

    (@maximequinzin)

    Hi, many thx for your answer but I’m not exactly in this case.
    – There is traffic on my website
    – The cron, after some days/weeks disappear from the list of cron to be executed
    On the admin page GetUrlCron->Show Cronjobs:
    I see my cron scheduled every 30min, it is executed during some day/weeks and then it does not appear any more in the list, whereas a second cron (executed once a day) is working since november 2021

    So the problem is not that only that cron is not executed, but in addition it is no more scheduled. Each time this happens I need to re-set a start date in the future to make it work again.

    Hope I’m clear enough ..

    Would it be a way to run it in a kind of debug mode to check what happened ?

    Thx.

    Thread Starter maximequinzin

    (@maximequinzin)

    Uhhh I’m just thinking to something.
    What happens when a job execution fails as much as retries defined ?
    Would it be removed from scheduled jobs ?

    Plugin Author berkux

    (@berkux)

    <<What happens when a job execution fails as much as retries defined ?
    Would it be removed from scheduled jobs ?>>
    no

    what’s in the cronjob: a shortcode or an URL?
    is there something in the plugins logfiles?

    Bernhard

    Thread Starter maximequinzin

    (@maximequinzin)

    The cron is an url to a php script that connect to a database to do a check and send an email depending on some condition.
    In the logfiles I see sometimes that the execution has failed.
    I have set a spie in my script to log each execution in the way to detect exactly when it stops.
    I’ll come back to you as soos as I have more informations.
    Thank you.

    Thread Starter maximequinzin

    (@maximequinzin)

    So now I observe that my crons stop just after a kind of double execution.
    I explain:
    Normal cron execution result in the following lines in log :
    – try
    – OK

    The last execution before it stops (disappear from schedule)
    – try
    – try
    – OK
    – OK

    It seems there is a doublon (date is the same for both try and OK) and then it stops

    I re-schedule it and check in the next day to be sure it happens the same.
    To be continued

    Thread Starter maximequinzin

    (@maximequinzin)

    Another thing I have noticed is that the cron that never dies is configured to retry one time whereas the one that stops is configured to retry twice … don’t know if there could be any relation …

    Thread Starter maximequinzin

    (@maximequinzin)

    Hello I come back to say that the problem still occur, I a see a double execution and then no more scheduled …
    The cron stopped on march the 30th, on april the 30th and on may the 5th …
    I really don’t understand why.
    I’m afraid I will have to switch to another plugin …
    Thx you for all anyway.

    Plugin Author berkux

    (@berkux)

    Hi,

    ok, try another plugin. I confess: I don’t know how to help you here.

    Bernhard

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Cron job no more scheduled’ is closed to new replies.