Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
it seems that enabling the module doesn't properly disable the task queue... this leads to horrors because the hosting-dispatch tasks pile up waiting for the lock that hosting-queued holds (guessing here).
I've run into the issue where running '/etc/init.d/hosting-queued start' doesn't provide any feedback when the module wasn't enabled on the hostmaster site. Should the init script catch that and enable the module? It should, at least, provide some useful feedback, no?
But even so, we don't even try to start/re-start the queue daemon on 1.x to 2.x upgrades, afaict:
[...]
echo "upgrading the frontend from $drupal_root to $NEW_PLATFORM"
if su -s /bin/sh aegir -c 'drush @hostmaster pm-list --status=enabled --pipe' | grep -q hosting_queued; then
service hosting-queued stop
fi
cd "$drupal_root"
su -s /bin/sh aegir -c "drush hostmaster-migrate $FLAGS '$site_uri' '$NEW_PLATFORM'"
echo "upgrade finished, old platform left in $drupal_root"
# restart daemon if enabled
if su -s /bin/sh aegir -c 'drush @hostmaster pm-list --status=enabled --pipe' | grep -q hosting_queued; then
service hosting-queued start
fi
[...]
For that matter, we don't stop the hosting-queue-runner service either, so other queued tasks might end up being triggered during the migration.
The 6.x-2.x branch will go EOL along with Drupal this week. So I'm closing this issue. If it remains a confirmed issue in 7.x-3.x, feel free to re-open, or better yet, create a new issue referencing this one.
Comments
Comment #1
helmo commentedAny logs?
The drupal module is enabled?
What does an manual restart command have to say?
Comment #2
anarcat commentedthe drupal module wasn't enabled. didn't look at logs. manual restart returns without an error but doesn't restart it.
drush @hostmaster en hosting-queuedmakes the daemon startable, but then i got hosting-dispatch tasks piled up.Comment #3
anarcat commentedit seems that enabling the module doesn't properly disable the task queue... this leads to horrors because the hosting-dispatch tasks pile up waiting for the lock that hosting-queued holds (guessing here).
Comment #4
anarcat commentedthe full workaround:
Comment #5
ergonlogicI haven't been able to replicate "enabling the module doesn't properly disable the task queue". In my tests this works just fine.
Comment #6
ergonlogicI've run into the issue where running '/etc/init.d/hosting-queued start' doesn't provide any feedback when the module wasn't enabled on the hostmaster site. Should the init script catch that and enable the module? It should, at least, provide some useful feedback, no?
But even so, we don't even try to start/re-start the queue daemon on 1.x to 2.x upgrades, afaict:
For that matter, we don't stop the hosting-queue-runner service either, so other queued tasks might end up being triggered during the migration.
On 1.x->2.x upgrades, I think we should:
Comment #7
anarcat commentedthis doesn't strike me as critical, and there's an easy workaround, downgrading.
Comment #8
ergonlogicThe 6.x-2.x branch will go EOL along with Drupal this week. So I'm closing this issue. If it remains a confirmed issue in 7.x-3.x, feel free to re-open, or better yet, create a new issue referencing this one.