I stumbled across this when trying to make sure we don't allow editing a platform/site git fields if a verify task is running or queued.

function hosting_task_outstanding() is used as if it is checking for any task that isn't completed (success or fail). It's actually only checking for queued tasks.

It is used to hide the other tasks (using menu access callback) when a site "delete" task is running. You may have noticed, it hides the other tasks when the task is queued, and when the task is complete, but while it is running, all other tasks appear available.

See screenshot:

screenshot of running delete task and available tasks that should be hidden.

CommentFileSizeAuthor
Screenshot from 2018-02-15 16-18-21.png56.58 KBJon Pugh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jon Pugh created an issue. See original summary.

Jon Pugh’s picture

Issue summary: View changes

  • Jon Pugh committed 3a39c02 on 2945177-outstanding-tasks-fix
    Issue #2945177 by Jon Pugh: Function hosting_task_outstanding() should...
helmo’s picture

Status: Active » Needs review

  • Jon Pugh committed 3a39c02 on 7.x-3.x
    Issue #2945177 by Jon Pugh: Function hosting_task_outstanding() should...
helmo’s picture

Status: Needs review » Fixed

merged

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.