// _TimeStampMsg( $objQueue ); /** * * check for loop re-queuing */ if (isset($objQueue['reQueueNum']) && $objQueue['reQueueNum'] >= 100) { _TimeStampMsg("--- (child {$my_pid}) : Frame Re-queue max value reached, acknowledge and skip."); $amqHandlerSubscriber->incrementAnalyzedCount($pid, 0, 0); $amqHandlerSubscriber->decrementTotalForWaitingProjects($pid); $amqHandlerSubscriber->tryToCloseProject($pid, $my_pid); $amqHandlerSubscriber->ack($msg); continue; } elseif (isset($objQueue['reQueueNum'])) { _TimeStampMsg("--- (child {$my_pid}) : Frame re-queued {$objQueue['reQueueNum']} times."); } $amqHandlerSubscriber->initializeTMAnalysis($objQueue, $my_pid); _TimeStampMsg("--- (child {$my_pid}) : fetched data for segment {$sid}-{$jid}. PID is {$pid}"); //lock segment _TimeStampMsg("--- (child {$my_pid}) : segment {$sid}-{$jid} locked"); $source = $objQueue['source']; $target = $objQueue['target']; $raw_wc = $objQueue['raw_word_count']; $fast_match_type = $objQueue['match_type']; $payable_rates = $objQueue['payable_rates']; $pretranslate_100 = $objQueue['pretranslate_100']; $text = $objQueue['segment']; if ($raw_wc == 0) { _TimeStampMsg("--- (child {$my_pid}) : empty segment. acknowledge and continue"); setSegmentTranslationError($sid, $jid); // SET as DONE $amqHandlerSubscriber->incrementAnalyzedCount($pid, 0, 0);