\chapter{process\+Queue}
\hypertarget{md_docs_2core_2process_queue}{}\label{md_docs_2core_2process_queue}\index{processQueue@{processQueue}}
\hypertarget{md_docs_2core_2process_queue_autotoc_md133}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md133}{autotoc\+\_\+md133}}\label{md_docs_2core_2process_queue_autotoc_md133}
title\+: Arma\+RAMDb -\/ Process Queue icon\+: mdi\+:file-\/text-\/outline \hypertarget{md_docs_2core_2process_queue_autotoc_md134}{}\doxysubsection{\texorpdfstring{excerpt\+: Processes a queue of tasks to be executed.}{excerpt\+: Processes a queue of tasks to be executed.}}\label{md_docs_2core_2process_queue_autotoc_md134}
\hypertarget{md_docs_2core_2process_queue_autotoc_md135}{}\doxysection{\texorpdfstring{ramdb\+\_\+db\+\_\+fnc\+\_\+process\+Queue}{ramdb\+\_\+db\+\_\+fnc\+\_\+process\+Queue}}\label{md_docs_2core_2process_queue_autotoc_md135}
\hypertarget{md_docs_2core_2process_queue_autotoc_md136}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md_docs_2core_2process_queue_autotoc_md136}
Processes the queue of pending database tasks sequentially. This function executes each task in the queue one by one, handling various database operations based on the task type. It continues processing until the queue is empty.\hypertarget{md_docs_2core_2process_queue_autotoc_md137}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md_docs_2core_2process_queue_autotoc_md137}

\begin{DoxyCode}{0}
\DoxyCodeLine{[]\ spawn\ ramdb\_db\_fnc\_processQueue}

\end{DoxyCode}
\hypertarget{md_docs_2core_2process_queue_autotoc_md138}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md_docs_2core_2process_queue_autotoc_md138}
None. This function does not require any parameters.\hypertarget{md_docs_2core_2process_queue_autotoc_md139}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md_docs_2core_2process_queue_autotoc_md139}
None. The function processes tasks in the queue and updates the processing state.\hypertarget{md_docs_2core_2process_queue_autotoc_md140}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md_docs_2core_2process_queue_autotoc_md140}
\hypertarget{md_docs_2core_2process_queue_autotoc_md141}{}\doxysubsubsection{\texorpdfstring{Start processing the queue manually\+:}{Start processing the queue manually\+:}}\label{md_docs_2core_2process_queue_autotoc_md141}

\begin{DoxyCode}{0}
\DoxyCodeLine{[]\ spawn\ ramdb\_db\_fnc\_processQueue;}

\end{DoxyCode}
\hypertarget{md_docs_2core_2process_queue_autotoc_md142}{}\doxysubsubsection{\texorpdfstring{Trigger queue processing from a client\+:}{Trigger queue processing from a client\+:}}\label{md_docs_2core_2process_queue_autotoc_md142}

\begin{DoxyCode}{0}
\DoxyCodeLine{[]\ remoteExec\ ["{}ramdb\_db\_fnc\_processQueue"{},\ 2,\ false];}

\end{DoxyCode}
\hypertarget{md_docs_2core_2process_queue_autotoc_md143}{}\doxysubsection{\texorpdfstring{Notes}{Notes}}\label{md_docs_2core_2process_queue_autotoc_md143}

\begin{DoxyItemize}
\item Sets {\ttfamily GVAR(is\+Processing)} to true while running and false when complete
\item Processes one task per second to prevent overloading
\item Handles a wide range of database operations including\+:
\begin{DoxyItemize}
\item Key-\/value operations (get, set, delete)
\item Hash table operations (hget, hset, hgetall, etc.)
\item List operations (listadd, listrng, listset, etc.)
\end{DoxyItemize}
\item Automatically started by {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+add\+Task} when new tasks are added
\item Each task execution is logged for debugging purposes
\item Should typically be spawned rather than called to avoid blocking
\end{DoxyItemize}\hypertarget{md_docs_2core_2process_queue_autotoc_md144}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md_docs_2core_2process_queue_autotoc_md144}

\begin{DoxyItemize}
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+add\+Task}\+: Adds tasks to the queue for processing
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+handler}\+: Handles data returned from database operations
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+scheduler}\+: Manages callback responses from the database
\end{DoxyItemize}\hypertarget{md_docs_2core_2process_queue_autotoc_md145}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md_docs_2core_2process_queue_autotoc_md145}
\doxysectlink{md_docs_2core_2add_task}{Add Task}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2core_2handler}{Handler}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2core_2init}{Init}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2core_2print_addon_name}{Print Addon Name}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2core_2process_queue}{Process Queue}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2core_2scheduler}{Scheduler}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2core_2test}{Test}{0} 