Closed (fixed)
Project:
Hosting
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
15 Feb 2017 at 18:45 UTC
Updated:
15 Feb 2018 at 16:09 UTC
Jump to comment: Most recent
When I hit "Update Status" on a task and I'm using hosting_queued, it gets stuck.
Even deleting the row in semaphore won't get it started again.
I have to restart the queue process to get it running again,
We should figure out a way to notify hosting-queued process to reload the task list?
Comments
Comment #2
jon pughComment #3
helmo commentedThis happens when the task is already running? or even when it's just queued?
Comment #4
jon pughNow you can see the tasks starting and stopping in the logs. If you Cancel a task before it completes, you never see the "Finished task" message.
The code reporting those messages is in hosting_task_execute()
Comment #5
helmo commentedHow are you even canceling a task that's already running? In hosting_task_cancel() it specifically filters on HOSTING_TASK_QUEUED.
Comment #6
jon pughSorry, I mean the "Update Status" button, which works on running tasks.
I think the problem is that the hosting.module form isn't aware of hosting_queued, so it doesn't remove the lock?
Not sure. Perhaps the fix should be in hosting_queued()
Comment #7
jon pughComment #8
jon pughPushed changes to branch 2852966-queued-locks that removes the lock on submit of the button, but the process still continues.
I'm not sure we can do anything to stop it short of finding the PID and running "kill"!
Comment #9
jon pughJust FYI I discovered a bit about signals:
Found the PID of "php" process running under aegir user using
top:aegir@aegir:~$ kill -SIGHUP 306Successfully triggered a restarting of the queue daemon.
Comment #10
helmo commentedDoes this feature branch still hold a benefit? I guess so ... the 'update status' button is added with the comment "Adds button to update the status of task nodes stuck in the 'processing' state." so it seems logical to remove the lock.
Comment #12
helmo commentedMerged