\chapter{process\+Queue}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue}{}\label{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue}\index{processQueue@{processQueue}}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue_autotoc_md119}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md119}{autotoc\+\_\+md119}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue_autotoc_md119}
title\+: Arma\+Dragonfly\+Client -\/ Process Queue icon\+: mdi\+:file-\/text-\/outline \hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue_autotoc_md120}{}\doxysubsection{\texorpdfstring{excerpt\+: Processes a queue of tasks to be executed.}{excerpt\+: Processes a queue of tasks to be executed.}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue_autotoc_md120}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue_autotoc_md121}{}\doxysection{\texorpdfstring{dragonfly\+\_\+db\+\_\+fnc\+\_\+process\+Queue}{dragonfly\+\_\+db\+\_\+fnc\+\_\+process\+Queue}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue_autotoc_md121}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue_autotoc_md122}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue_autotoc_md122}
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__g_1_2ids_2dragonfly_2docs_2core_2process_queue_autotoc_md123}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue_autotoc_md123}

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

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

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

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

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

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

\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 dragonfly\+\_\+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__g_1_2ids_2dragonfly_2docs_2core_2process_queue_autotoc_md130}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue_autotoc_md130}

\begin{DoxyItemize}
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+add\+Task}\+: Adds tasks to the queue for processing
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+handler}\+: Handles data returned from database operations
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+scheduler}\+: Manages callback responses from the database
\end{DoxyItemize}\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue_autotoc_md131}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue_autotoc_md131}
\doxysectlink{md__g_1_2ids_2dragonfly_2docs_2core_2add_task}{Add Task}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2core_2handler}{Handler}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2core_2init}{Init}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2core_2print_addon_name}{Print Addon Name}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2core_2process_queue}{Process Queue}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler}{Scheduler}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md__g_1_2ids_2dragonfly_2docs_2core_2test}{Test}{0} 