datakick Posted November 29, 2022 Posted November 29, 2022 Hi everyone, we just had a support request related to high server load. Looks like there is a potential for infinite loop. That can have quite negative impact on server performance. This issue is actually not a bug in the thirty bees core. It looks like a bug in PHP itself, and only for some combinations of PHP and server time zones. I was able to reproduce the issue on PHP7, time zone US/Central. Not reproducible on PHP8 US/Central, or on PHP7 Europe/Prague. The issue is related to adding time interval to \DateTime object shortly before the Daylight Saving Time threshold. https://github.com/thirtybees/thirtybees/issues/1569 Just to be sure, you can look into your database: SELECT from_unixtime(last_execution), from_unixtime(last_checked) FROM tb_scheduled_task; if any of the returned datatime is around the DST threshold, your server is probably affected. To fix this, simply update all scheduled tasks: UPDATE tb_scheduled_task SET last_checked = UNIX_TIMESTAMP(), last_execution = UNIX_TIMESTAMP();
wakabayashi Posted November 29, 2022 Posted November 29, 2022 (edited) 28 minutes ago, datakick said: SELECT from_unixtime(last_execution), from_unixtime(last_checked) FROM tb_scheduled_task; This table does not exist for me 🙃 #1146 - Tabelle 'tb_scheduled_task' existiert nicht And core updater doesn't show anything wrong under "database". Edited November 29, 2022 by wakabayashi
wakabayashi Posted November 29, 2022 Posted November 29, 2022 Maybe other merchants can check, if they have it. 🤔
datakick Posted November 29, 2022 Author Posted November 29, 2022 of course, db prefix can be different: <PREFIX>scheduled_task
wakabayashi Posted November 29, 2022 Posted November 29, 2022 30 minutes ago, datakick said: of course, db prefix can be different: <PREFIX>scheduled_task Man it's not my day. 🤕 Sorry! Yeah it's there with the right prefix - obviously. Looks clean, right?
datakick Posted November 29, 2022 Author Posted November 29, 2022 Looks good. Congrats, you are not affected 🙂 1
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