// | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to the Free Software Foundation, | // | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | // | | // +---------------------------------------------------------------------------+ // require_once '../lib-common.php'; $nfclass = new nexflow(); $nfclass->set_debug(false); /* Query to get a list of all un-completed tasks for type 'IF, Batch and Batch Function' ** Loop while we have new tasks of these type so that we can complete all possible tasks */ $processlist = array(); $retval = nf_getListofUncompletedTasks(&$processlist); $taskcount = $retval['count']; $processlist = $retval['list']; $i = 1; do { if ($nfclass->_debug) { COM_errorLog("Orchestrator: Loop:{$i}, {$taskcount} un-completed tasks found"); } $nfclass->clean_queue(); $retval = nf_getListofUncompletedTasks(&$processlist); $taskcount = $retval['count']; $processlist = $retval['list']; $i++; } while ($taskcount > 0);