User tests: Successful: Unsuccessful:
Scheduled Tasks never run when using the PDO MySQL database driver in Joomla. The CLI script replies with
<warning>Task#01 'CLI only backup at midnight' failed to run. Is it already running?</warning>
That's because you are trying to find the number of affected rows after unlocking the tables once you have tried to set a lock timestamp on the task row. However, this means that you trying to find out how many rows where affected by unlocking the tables, not how many tasks were affected by the UPDATE command which sets the lock timestamp! Therefore tasks remained locked without running.
This problem does not happen with the MySQLi driver because it operates differently under the hood. Fun times!
Tagging @bembelimen since this is a release blocker!
Make sure your site is using the PDO MySQL database driver. THIS IS NOT REPRODUCIBLE WITH THE mysqli DRIVER.
Create a new scheduled task.
Try to execute it with php ./joomla.php scheduler:run --all
(AFTER applying my other PR #37034 which solves yet another issue with scheduled tasks).
You get the error
<warning>Task#01 'CLI only backup at midnight' failed to run. Is it already running?</warning>
The task runs!
None.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration |
I have tested this item
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-02-14 18:56:17 |
Closed_By | ⇒ | bembelimen | |
Labels |
Added:
?
|
Thank you very much for this finding!
I have tested this item✅ successfully on e8b6ccb
Got the error described here adn after applying the patch
the issue is resolved
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37036.