SLiCK_303 Posted December 30, 2017 Share Posted December 30, 2017 So, since v2.1.0 cron jobs have been working for me. The problem now is the, Last execution, never gets updated. It seems to stay at Never, even though the job has run. Link to comment Share on other sites More sharing options...
0 pauld Posted August 22, 2018 Share Posted August 22, 2018 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 More sharing options...
0 dosbiner Posted August 22, 2018 Share Posted August 22, 2018 @pauld nice, will try it ? Link to comment Share on other sites More sharing options...
0 doclucas Posted August 24, 2018 Share Posted August 24, 2018 @slick_303 said in cron jobs Last execution: So, since v2.1.0 cron jobs have been working for me. The problem now is the, Last execution, never gets updated. It seems to stay at Never, even though the job has run. Working fine for me on 2.1.3 Is it still an issue for you, @SLiCK_303 ? Link to comment Share on other sites More sharing options...
0 dosbiner Posted August 24, 2018 Share Posted August 24, 2018 @doclucas its working, but time execution never updated so we not sure if crons working or not. New user will confuse about it as I can confirm this problem still exist. Link to comment Share on other sites More sharing options...
0 doclucas Posted August 24, 2018 Share Posted August 24, 2018 So how did you confirm that the cron worked? Link to comment Share on other sites More sharing options...
0 dosbiner Posted August 24, 2018 Share Posted August 24, 2018 I can see the output after my script execute by cron , so its working Link to comment Share on other sites More sharing options...
0 doclucas Posted August 24, 2018 Share Posted August 24, 2018 What output? And how do you see it? Link to comment Share on other sites More sharing options...
0 dosbiner Posted August 24, 2018 Share Posted August 24, 2018 for example I've tidy module https://codecanyon.net/item/prestashop-tidy/18965736 to delete old abandoned carts using cron daily. I can see the result my old abandoned carts deleted by cron Link to comment Share on other sites More sharing options...
0 doclucas Posted August 24, 2018 Share Posted August 24, 2018 I see. Do you have any more cron jobs configured in other places on your server? Such as cron jobs from your server's control panel? (like cPanel) Link to comment Share on other sites More sharing options...
0 dosbiner Posted August 24, 2018 Share Posted August 24, 2018 nope, just from cron task manager module Link to comment Share on other sites More sharing options...
0 doclucas Posted August 24, 2018 Share Posted August 24, 2018 ~~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 More sharing options...
0 doclucas Posted August 24, 2018 Share Posted August 24, 2018 Sorry, had a small typo, revised the code above. @dosbiner does it work for you now? Link to comment Share on other sites More sharing options...
0 doclucas Posted August 24, 2018 Share Posted August 24, 2018 You may also want to read this: https://github.com/thirtybees/thirtybees/issues/581 Link to comment Share on other sites More sharing options...
0 doclucas Posted August 27, 2018 Share Posted August 27, 2018 Pull request: https://github.com/thirtybees/cronjobs/pull/7 Link to comment Share on other sites More sharing options...
0 dosbiner Posted August 28, 2018 Share Posted August 28, 2018 @doclucas thank you for fixing the issue ? Link to comment Share on other sites More sharing options...
0 doclucas Posted August 28, 2018 Share Posted August 28, 2018 @dosbiner my pleasure ;) Link to comment Share on other sites More sharing options...
0 Beeta Posted January 20, 2019 Share Posted January 20, 2019 Same problem here and my sandbox with 1.0.8. controllers/front/cron.php lacks of your commit at line 182 I now manually modified but it doesn't get updated anyway (edit: but it seams that the cron is not running at all 😰) Link to comment Share on other sites More sharing options...
0 Beeta Posted January 20, 2019 Share Posted January 20, 2019 ok solved the cron entry have % and in crontab they need to be escaped Link to comment Share on other sites More sharing options...
0 led24ee Posted July 27, 2019 Share Posted July 27, 2019 Can somebody tell me HOW to set this cron to work. So far it does nothing. Link to comment Share on other sites More sharing options...
0 SLiCK_303 Posted July 27, 2019 Author Share Posted July 27, 2019 since the upgrade to 2.2.0, I get this, anyone have any idea why? Link to comment Share on other sites More sharing options...
0 SLiCK_303 Posted July 27, 2019 Author Share Posted July 27, 2019 5 hours ago, led24ee said: Can somebody tell me HOW to set this cron to work. So far it does nothing. Do you use Cpanel or Plesk for your hosting? Link to comment Share on other sites More sharing options...
0 led24ee Posted July 27, 2019 Share Posted July 27, 2019 None of them. Link to comment Share on other sites More sharing options...
0 led24ee Posted July 27, 2019 Share Posted July 27, 2019 14 minutes ago, SLiCK_303 said: Do you use Cpanel or Plesk for your hosting? None of them. Link to comment Share on other sites More sharing options...
0 SLiCK_303 Posted July 27, 2019 Author Share Posted July 27, 2019 1 minute ago, led24ee said: None of them. you have to use something..... Or is this a localhost setup? Link to comment Share on other sites More sharing options...
0 led24ee Posted July 27, 2019 Share Posted July 27, 2019 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 More sharing options...
Question
SLiCK_303
So, since v2.1.0 cron jobs have been working for me. The problem now is the, Last execution, never gets updated. It seems to stay at Never, even though the job has run.
Link to comment
Share on other sites
37 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now