Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

cron jobs Last execution

Featured Replies

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.

  • 7 months later...

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

@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 ?

@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.

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

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)

~~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 :)

Sorry, had a small typo, revised the code above. @dosbiner does it work for you now?

You may also want to read this: https://github.com/thirtybees/thirtybees/issues/581

  • 4 months later...

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 😰)

  • 6 months later...

Can somebody tell me HOW to set this cron to work. So far it does nothing.

  • Author
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?

14 minutes ago, SLiCK_303 said:

Do you use Cpanel or Plesk for your hosting?

None of them.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.