Scheduler not reassigning task after restart

41 views
Skip to first unread message

Benson Myrtil

unread,
Nov 10, 2015, 3:33:38 PM11/10/15
to web2py-users
I am running on a windows server 2008. I have nssm setup which manages my 4 worker nodes. The workers appear to be working correctly in the sense that the heartbeat is consistently updating. However, the tasks are stuck in the QUEUE status assigned to old worker nodes that do not exist.

Is there a way to force the scheduler to update the assignments every so often or at least to check to make sure they are assigned to 'living' workers?

Niphlod

unread,
Nov 11, 2015, 5:25:30 AM11/11/15
to web2py-users
this is handled automatically by each and every worker every 5 cycles (with default heartbeat of 3 seconds, it's 15 seconds).
You can "force" the job that is done every 5 cycles setting "PICK" as a status on the workers.

That being said, if it doesn't add up in your environment you'd better triplecheck if there are exceptions going around: what you're experiencing should last 15 seconds AT THE MOST.

Benson Myrtil

unread,
Nov 11, 2015, 8:32:16 AM11/11/15
to web2py-users
This problem appeared to fix itself. I woke up this morning and all the task were finally reassigned. Thanks!

Benson Myrtil

unread,
Nov 11, 2015, 8:32:45 AM11/11/15
to web2py-users
Thank you for the tip about changing the status to PICK. Ill use that next time if this ever occurs again.
Reply all
Reply to author
Forward
0 new messages