• Resolved Syltaen

    (@syltaen)


    Hi,

    I’m working on a website that uses Task Scheduler to retrieve data from an API and store it locally. This action is configured to happen several times a day.

    My problem is that I have to trigger the action manually everyday because, and I don’t know why, it does not work by itself.
    The thing is that the “Next run” ends up being overpassed and is then scheduled in the past. It can’t be triggered automatically anymore.
    eg : The next action should happen… two hours ago. That means it’s never going to happen.

    Isn’t there an easy fix to make actions scheduled in the past occur anyway ?
    I’m kind of a newb, so I rather not make changes into the plugin’s code by myself.

    Thank you ??

    nb : I should also mention that I use your plugin for other websites and it works great :p

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    Maybe double-check if the correct time zone is set for the site. To do so, go to Dashboard -> Settings -> General -> Timezone.

    Hope it helps.

    Thread Starter Syltaen

    (@syltaen)

    Thank you for your response.

    I just tried several different hours, but it didn’t change anything.
    The plugins works on my other websites that are set up just the same, so I don’t think the problem is coming from there.

    Plugin Author miunosoft

    (@miunosoft)

    The plugin periodically checks the scheduled actions and
    is supposed to trigger them if they are behind the time that the check is performed. So even an action gets scheduled 2 hours ago, it should be triggered when the plugin performs the routine check.

    The possibilities are:
    – the checks are not performed.
    – failing to retrieve scheduled actions from the database.
    – the time is not calculated properly.

    Check if the server heartbeat is turned on by going to Dashboard -> Task Scheduler -> Settings -> Server Heartbeat.

    Thread Starter Syltaen

    (@syltaen)

    Well,

    It was turned on, yes.
    But I changed the interval between each heartbeat, disabled/enabled the task and it seems it’s working now. I guess the interval was way too long.

    Anyway, the problem is fixed and I hope it stays that way :p

    Thank you for your help ??

    Plugin Author miunosoft

    (@miunosoft)

    You are welcome!

    Glad that it helped.

    And thanks for the review the other day.

    Enjoy!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Next run scheduled in the past’ is closed to new replies.