Advanced Queue stuck

BatchPatch Forums Home Forums BatchPatch Support Forum Advanced Queue stuck

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8679
    trobinson
    Participant

    I created an advanced multi row sequence to fire off queues on a bunch of servers:

    get last boot time

    terminate queue if previous action fails/errors

    check for available updates

    terminate queue if previous “check for available updates finds 0 updates..”

    I’ve had good success with this queue until a recent run. Several hosts came back with Error 1605, 1610 or -102 for the check for updates. No problem, I’ll fix my windows updates on these hosts. The issue is my queue is stuck waiting for those 6 hosts to complete. (Executing 7 of 16: ‘Terminate queue…’).

    It won’t move on to the next advanced queue step. The execution row was a scheduled task. I can open the file and try to abort the stuck row job queues but it doesn’t do anything. Is there a way to keep the queues from jambing if a windows update doesn’t return clean?

    #9807
    doug
    Moderator

    You found a bug. Thanks for bringing it to our attention. The issue is with “Terminate queue if previous ‘Check for available updates’ finds 0 updates”, which is crashing the job queue thread when the previous check for updates returns an error instead of producing a result. That’s why it just sits there indefinitely. We’ll have this fixed for the next release. In the meantime your options are to either not use the “Terminate queue if previous ‘Check for available updates’ finds 0 updates” or to use something like this instead, which will force the queue to terminate if the check for available updates errors so that the 3rd step in the queue is just never executed in that case and therefore cannot crash the thread:

    1: Check for available updates

    2: Terminate queue if previous action fails/errors

    3: Terminate queue if previous ‘Check for available updates’ finds 0 updates

    -Doug

    #9808
    trobinson
    Participant

    Thanks Doug! I’ll make the changes to my queues in the meantime.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.