• Resolved wpwms

    (@wpwms)


    Hello, I tried searching for this intervall but it doesnt find it. When I changed it to “Daily” on a specific job im trying to edit I found it.

    Is it not possible to find all different intervalls in the scheduler? Would be a life saver if I could run it every 10 minutes and reschedule it for the night time.

    Thanks in advance, happy for any help ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • That is a good question and it looks like you’ve got two specific needs.

    1. the ten_min isn’t being found, and;
    2. restrict the 10-minute CRON job to night-time hours

    I can definitely help you with the first one, the reason why it’s not being found is because in line 3 of the output, it’s telling us that you have the “Force Daily” setting unchecked. Since 10 minutes is less than 24 hours, it is skipped because of that setting.

    But because of your second need, simply checking that box won’t give you the desired result since it also changes the interval to only run once per day instead of every 10 minutes within those hours. That sounds like a great feature and I’ll see about figuring out how to add it to this plugin ??

    Additionally, navigating to the “Status” tab will show you all the CRON schedules and hooks registered on your website, so you should be able to see the ten_min schedule along with all the others.

    I just released version 2.0.0 of the plugin which introduces a new setting “Restrict Frequent”. Checking that box instead of the “Force Daily” box should do what you want it to do. Cheers!

    Thread Starter wpwms

    (@wpwms)

    Hello,

    Yes those were exactly my needs and you were totally right ?? Great feature indeed ??

    Wow amazing update and such fast work too, I’m amazed! It succesfully found the job and was able to reschedule it in version 2.0.

    Haven’t fully tested it yet since I scheduled it for 23.00 tonight (swedish time) so It’s gonna take a while till I know for sure. Seems really good so far though, I see its reschuled in my cron log. It’s a reoccuring job that goes every 10th minute and ideally keeps rescheduling it every 10th minute during night (like it usually does) but we’ll see how it goes ??

    But to test I figured I should try reschedule it so it would run in a few minutes from now so see how it acts. But it wont let me find the job after I had rescheduled it.

    Summary:
    After succesfully finding and rescheduled the “ten_min” intervall job the first time, It does not seem to find anymore (In case you want to edit it again or so)

    Picture doesnt say much but I’m inside update hours and searching for it after edit – https://i.imgur.com/fnx51Ys.png

    Just a heads up incase you wanted to know! Again thanks for the answers and a great plugin ??</img>

    I’m glad you like the plugin! I’d be thrilled if you’d leave a review with a star-rating <3

    The update feature will only “find” events that need to be updated, i.e. if their schedule is included, if the hook is not excluded, and if it’s start time isn’t already starting outside of your specified hours. Because it was successfully rescheduled the first time, it won’t be found in attempts after that.

    Ideally, that function would only need to be run once. It really shouldn’t be finding cron events to update and reschedule every night, but sometimes when plugins update or if a user deactivates/reactivates a new plugin and a new cron event gets added, it’ll be adjusted later that night.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to find specific intervall?’ is closed to new replies.