if(job_queue.length!==0)
  {

    var assigned_node = node_queue.pop();
    var assigned_hostname = assigned_node.hostname;