whle (mq_fetch("QUEUE")) {
   if (yes) {
     do something
  } else {
     mq_add("QUEUE");
    add back to queue.
  }
}

can mq_add use here? I tried it, it do not work.
and How to determine the end?