Closed (fixed)
Project:
Hosting
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2018 at 17:05 UTC
Updated:
19 Dec 2018 at 15:39 UTC
Jump to comment: Most recent, Most recent file



Comments
Comment #3
jon pughComment #4
jon pughComment #5
helmo commentedI'm not sure I understand when this works.
The semaphore could be left behind when a task suffers a fatal error.... but then it also still has the HOSTING_TASK_PROCESSING status.
Or do you have another scenario?
I just tried to simulate an error by adding a 'die' statiement in drush_provision_drupal_provision_verify_validate() but that was properly handled.
Comment #6
jon pughRight now it's happening in the devshop install.sh script. Somehow, the sudo privileges don't seem to have been reloaded, so it hangs asking for a sudo password. You have to CTRL-C, and that leaves the semaphore...
I can't remember the exact cause of it, but I've seen it happen other times as well.
The main thing is, this is one of 3 or so answers to the common question of "why won't my tasks run".
It only activates in the edge case when the semaphore exists but there are no processing tasks.
Comment #7
helmo commentedOK
Tested with:
drush @hm sql-query "insert into semaphore set name='hosting_queue_tasks_running', value=1;"Comment #8
jon pughMy goal is to make aegir/devshop more self-healing. There's no reason we can't surface these problems for the user.
I want to put it into a hook_requirements as well, so the drupal site status knows about it, but that can be a follow up.
Comment #10
jon pughThanks helmo!