Indicia-Team / warehouse

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

High cost, low priority tasks in workqueue not happening #480

Closed JimBacon closed 1 year ago

JimBacon commented 1 year ago

There are 11 task_indicia_svc_security_delete_user_account tasks currently in the work queue with priority 3 and cost 100 which are up to a week old.

For them to be carried out requires the average processor load to be <= 10%. (application/libraries/WorkQueue.php::findMaxCostPriority)

I guess the server is just too busy to ever perform them. Some additional logging would help to confirm this.

johnvanbreda commented 1 year ago

The server has been catching up with data cleaner tasks which would have affected performance - it now seems to be up to date so I'd give it another day to see if they get picked up. We could of course tweak the thresholds so they are more likely to get run.

JimBacon commented 1 year ago

3 days later, following the weekend, those low priority tasks have now completed.