joomla-projects / soc21_website-cronjob

GNU General Public License v2.0
5 stars 3 forks source link

Fix task queue behavior with orphaned tasks #58

Closed ditsuke closed 2 years ago

ditsuke commented 2 years ago

Summary of Changes

Excludes orphaned tasks from TaskModel::getTask()'s task locking query so don't end up acquiring locks/trying to run orphaned tasks.

Testing Instructions

Actual result BEFORE applying this Pull Request

Orphaned tasks are locked and triggered.

Expected result AFTER applying this Pull Request

Orphaned tasks are excluded from the task queue.

Documentation Changes Required

-