\chapter{scheduler}
\hypertarget{md_docs_2core_2scheduler}{}\label{md_docs_2core_2scheduler}\index{scheduler@{scheduler}}
\hypertarget{md_docs_2core_2scheduler_autotoc_md150}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md150}{autotoc\+\_\+md150}}\label{md_docs_2core_2scheduler_autotoc_md150}
title\+: Arma\+RAMDb -\/ Scheduler icon\+: mdi\+:file-\/text-\/outline \hypertarget{md_docs_2core_2scheduler_autotoc_md151}{}\doxysubsection{\texorpdfstring{excerpt\+: Scheduled Environment for extension.}{excerpt\+: Scheduled Environment for extension.}}\label{md_docs_2core_2scheduler_autotoc_md151}
\hypertarget{md_docs_2core_2scheduler_autotoc_md152}{}\doxysection{\texorpdfstring{ramdb\+\_\+db\+\_\+fnc\+\_\+scheduler}{ramdb\+\_\+db\+\_\+fnc\+\_\+scheduler}}\label{md_docs_2core_2scheduler_autotoc_md152}
\hypertarget{md_docs_2core_2scheduler_autotoc_md153}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md_docs_2core_2scheduler_autotoc_md153}
Manages the callback system for the Arma\+RAMDb 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_docs_2core_2scheduler_autotoc_md154}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md_docs_2core_2scheduler_autotoc_md154}

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

\end{DoxyCode}
\hypertarget{md_docs_2core_2scheduler_autotoc_md155}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md_docs_2core_2scheduler_autotoc_md155}
\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_docs_2core_2scheduler_autotoc_md156}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md_docs_2core_2scheduler_autotoc_md156}
None. The function registers the task ID in a hashmap for later processing.\hypertarget{md_docs_2core_2scheduler_autotoc_md157}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md_docs_2core_2scheduler_autotoc_md157}
\hypertarget{md_docs_2core_2scheduler_autotoc_md158}{}\doxysubsubsection{\texorpdfstring{Process a callback from the extension\+:}{Process a callback from the extension\+:}}\label{md_docs_2core_2scheduler_autotoc_md158}

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

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

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

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

\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_docs_2core_2scheduler_autotoc_md161}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md_docs_2core_2scheduler_autotoc_md161}

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