\chapter{scheduler}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler}{}\label{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler}\index{scheduler@{scheduler}}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md136}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md136}{autotoc\+\_\+md136}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md136}
title\+: Arma\+Dragonfly\+Client -\/ Scheduler icon\+: mdi\+:file-\/text-\/outline \hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md137}{}\doxysubsection{\texorpdfstring{excerpt\+: Scheduled Environment for extension.}{excerpt\+: Scheduled Environment for extension.}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md137}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md138}{}\doxysection{\texorpdfstring{dragonfly\+\_\+db\+\_\+fnc\+\_\+scheduler}{dragonfly\+\_\+db\+\_\+fnc\+\_\+scheduler}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md138}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md139}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md139}
Manages the callback system for the Arma\+Dragonfly\+Client extension. This function receives task IDs from the extension\textquotesingle{}s asynchronous callbacks, parses them, and registers them in a hashmap for later processing. It acts as the bridge between the extension\textquotesingle{}s asynchronous operations and the game\textquotesingle{}s execution environment.\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md140}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md140}

\begin{DoxyCode}{0}
\DoxyCodeLine{[\_taskID]\ call\ dragonfly\_db\_fnc\_scheduler}

\end{DoxyCode}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md141}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md141}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{4}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Parameter   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Type   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Description   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Default    }\\\cline{1-4}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Parameter   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Type   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Description   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Default    }\\\cline{1-4}
\endhead
{\ttfamily \+\_\+task\+ID}   &String   &Task identifier returned from extension callback   &"{}"{}   \\\cline{1-4}
\end{longtabu}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md142}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md142}
None. The function registers the task ID in a hashmap for later processing.\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md143}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md143}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md144}{}\doxysubsubsection{\texorpdfstring{Process a callback from the extension\+:}{Process a callback from the extension\+:}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md144}

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}1689524160123\_get"{}]\ call\ dragonfly\_db\_fnc\_scheduler;}

\end{DoxyCode}
\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md145}{}\doxysubsubsection{\texorpdfstring{Forward a callback to the server\+:}{Forward a callback to the server\+:}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md145}

\begin{DoxyCode}{0}
\DoxyCodeLine{["{}1689524160123\_hgetall"{}]\ remoteExecCall\ ["{}dragonfly\_db\_fnc\_scheduler"{},\ 2,\ false];}

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

\begin{DoxyItemize}
\item Parses the task ID to extract the timestamp and operation type
\item Registers the task in a type-\/specific hashmap using the mission namespace
\item Each operation type (get, hgetall, etc.) has its own hashmap for tracking
\item The format of task IDs is typically\+: {\ttfamily \mbox{[}timestamp\mbox{]}\+\_\+\mbox{[}operation\mbox{]}}
\item This function is automatically called by the extension callback mechanism
\item Creates hashmaps on demand if they don\textquotesingle{}t already exist
\item Critical for handling asynchronous database operations
\end{DoxyItemize}\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md147}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md147}

\begin{DoxyItemize}
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+fetch}\+: Assembles data chunks for large datasets
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+handler}\+: Processes the data retrieved from database operations
\item {\ttfamily dragonfly\+\_\+db\+\_\+fnc\+\_\+process\+Queue}\+: Executes queued database operations
\end{DoxyItemize}\hypertarget{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md148}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md__g_1_2ids_2dragonfly_2docs_2core_2scheduler_autotoc_md148}
\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} 