Scheduled import at specific time not working

Home Forums Calendar Products Event Aggregator Scheduled import at specific time not working

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1504254
    Webneo GmbH
    Participant

    Hello,

    with the Aggregator AddOn we set an scheduled import from Google calendar at 12:00, in the first day its all okay and imported at 12:00, but in the further days the import time is slowly moving to an later time (2nd day 12:10, 3rd day 12:25, etc.).

    Why is the import not all days at 12:00 and how we can set it up to all-days 12:00 import?

    Best regards
    Alex

    #1506250
    Cliff
    Member

    Hi, Alex. This runs on WP Cron (https://developer.wordpress.org/plugins/cron/), which can sometimes suffer from this.

    It might help for you to install a plugin like https://wordpress.org/plugins/wp-cron-control/ (third-party, not guaranteed or supported by us) to investigate this a little more in-depth.

    Might it be that your site doesn’t have visitors every day?

    #1506351
    Webneo GmbH
    Participant

    Hi,

    it is possible to run an single calendar import via URL? like /wp-cron.php?cron=tribe_calendar_import&hash=123 or something like this? (in addition to call this URL at 12:00 with an server side cronjob and set the scheduled import to “on demand”?)

    Or did we have another solution to be sure that the import from the calendars ar started exactly 12:00?

    Best regards
    Alex

    #1511704
    Cliff
    Member

    Hi, Alex. So sorry for the delayed response here.

    After discussing with a developer, Event Aggregator checks that a job is fired by a user who has permission to do so — so an anonymous-sort of cronjob from cPanel or wherever outside of WordPress would fail, as things are designed.

    However, one idea is that this could be accomplished via WP CLI. Are you willing and able (with your hosting settings and your own technical ability) to consider implementing this via WP CLI?

    If yes, this would need to be built, as the functionality does not currently exist. The developer was polling your interest in this direction before continuing.

    Thank you.

    #1512058
    Webneo GmbH
    Participant

    Hello Cliff,

    we can’t test it now, so the complete import are actually not functionally ( Ticket: https://theeventscalendar.com/support/forums/topic/scheduled-google-calendar-import-not-working-anymore-and-use-all-imports-at-once/#post-1511979 ).

    We can test this later if the import from Google Calendars works again.

    Best regards
    Alex

    #1512662
    Cliff
    Member

    Sorry to hear that, Alex.

    Upon further thought, the WP Cron system should be triggered anytime your site receives visitors. Assuming lack of site visitors is the core issue to overcome here… Your server’s cronjob might be able to trigger this. You can reference the bit at the end of https://tommcfarlin.com/wordpress-cron-jobs/ for an idea how to implement this, using wget

    Feel free to reply back after your imports start working again and after you give this server cronjob idea a try.

    Thanks!

    #1528962
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Scheduled import at specific time not working’ is closed to new replies.