Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.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:

| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot from 2018-02-15 16-18-21.png | 56.58 KB | Jon Pugh |











Comments
Comment #2
Jon PughComment #4
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commentedComment #6
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commentedmerged