HPCC-8817 Add code to handle AgentQueue for Thor

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>