Jump to content
thirty bees forum
  • 0

cron jobs Last execution


SLiCK_303

Question

Recommended Posts

  • 0

I rewrited Cron module to be able to execute task with time execution tolerance, i find it usefull for shared hostings.

Maybe you find it usefull too. In my case webhost is executing cron like every 10 minutes +- few minutes, so a lot of task didnt get executed.

Here is cron task manager with this new feature:

https://github.com/pdurko/cronjobs

Link to comment
Share on other sites

  • 0

~~It seems like the module currently completely ignores (doesn't compare) the cron last execution time and the set frequency that it should be executed and just follows the run frequency set in the server cron manager. That said,~~ to fix the time not getting updated, do this: Edit /modules/cronjobs/controllers/front/cron.php

Find: 'updated_at' => ['type' => 'sql', 'value' => 'IF (`one_shot` = TRUE, FALSE, `active`)'], Replace with: 'updated_at' => ['type' => 'sql', 'value' => 'NOW()'], 'active' => ['type' => 'sql', 'value' => 'IF(`one_shot` = TRUE, FALSE, `active`)'],

Hope this helps :)

Link to comment
Share on other sites

  • 0
4 minutes ago, SLiCK_303 said:

you have to use something.....  Or is this a localhost setup?

Not local, I have host. But there is possibility ti set up cron task, limit is 5. I tried with these too, but result was not working condition.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...