[{"data":1,"prerenderedAt":258},["ShallowReactive",2],{"content-query-wU35Vv8WRS":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"icon":9,"body":10,"_type":252,"_id":253,"_source":254,"_file":255,"_stem":256,"_extension":257},"/dragonfly/main/processqueue","main",false,"","ArmaDragonflyClient - Process Queue","mdi:file-text-outline",{"type":11,"children":12,"toc":238},"root",[13,22,29,35,41,54,60,65,71,76,82,89,98,104,113,119,188,194],{"type":14,"tag":15,"props":16,"children":18},"element","h1",{"id":17},"process-queue",[19],{"type":20,"value":21},"text","Process Queue",{"type":14,"tag":23,"props":24,"children":26},"h2",{"id":25},"description",[27],{"type":20,"value":28},"Description",{"type":14,"tag":30,"props":31,"children":32},"p",{},[33],{"type":20,"value":34},"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.",{"type":14,"tag":23,"props":36,"children":38},{"id":37},"syntax",[39],{"type":20,"value":40},"Syntax",{"type":14,"tag":42,"props":43,"children":48},"pre",{"className":44,"code":46,"language":47,"meta":7},[45],"language-sqf","[] spawn dragonfly_db_fnc_processQueue\n","sqf",[49],{"type":14,"tag":50,"props":51,"children":52},"code",{"__ignoreMap":7},[53],{"type":20,"value":46},{"type":14,"tag":23,"props":55,"children":57},{"id":56},"parameters",[58],{"type":20,"value":59},"Parameters",{"type":14,"tag":30,"props":61,"children":62},{},[63],{"type":20,"value":64},"None. This function does not require any parameters.",{"type":14,"tag":23,"props":66,"children":68},{"id":67},"return-value",[69],{"type":20,"value":70},"Return Value",{"type":14,"tag":30,"props":72,"children":73},{},[74],{"type":20,"value":75},"None. The function processes tasks in the queue and updates the processing state.",{"type":14,"tag":23,"props":77,"children":79},{"id":78},"examples",[80],{"type":20,"value":81},"Examples",{"type":14,"tag":83,"props":84,"children":86},"h3",{"id":85},"start-processing-the-queue-manually",[87],{"type":20,"value":88},"Start processing the queue manually:",{"type":14,"tag":42,"props":90,"children":93},{"className":91,"code":92,"language":47,"meta":7},[45],"[] spawn dragonfly_db_fnc_processQueue;\n",[94],{"type":14,"tag":50,"props":95,"children":96},{"__ignoreMap":7},[97],{"type":20,"value":92},{"type":14,"tag":83,"props":99,"children":101},{"id":100},"trigger-queue-processing-from-a-client",[102],{"type":20,"value":103},"Trigger queue processing from a client:",{"type":14,"tag":42,"props":105,"children":108},{"className":106,"code":107,"language":47,"meta":7},[45],"[] remoteExec [\"dragonfly_db_fnc_processQueue\", 2, false];\n",[109],{"type":14,"tag":50,"props":110,"children":111},{"__ignoreMap":7},[112],{"type":20,"value":107},{"type":14,"tag":23,"props":114,"children":116},{"id":115},"notes",[117],{"type":20,"value":118},"Notes",{"type":14,"tag":120,"props":121,"children":122},"ul",{},[123,137,142,165,178,183],{"type":14,"tag":124,"props":125,"children":126},"li",{},[127,129,135],{"type":20,"value":128},"Sets ",{"type":14,"tag":50,"props":130,"children":132},{"className":131},[],[133],{"type":20,"value":134},"GVAR(isProcessing)",{"type":20,"value":136}," to true while running and false when complete",{"type":14,"tag":124,"props":138,"children":139},{},[140],{"type":20,"value":141},"Processes one task per second to prevent overloading",{"type":14,"tag":124,"props":143,"children":144},{},[145,147],{"type":20,"value":146},"Handles a wide range of database operations including:\n",{"type":14,"tag":120,"props":148,"children":149},{},[150,155,160],{"type":14,"tag":124,"props":151,"children":152},{},[153],{"type":20,"value":154},"Key-value operations (get, set, delete)",{"type":14,"tag":124,"props":156,"children":157},{},[158],{"type":20,"value":159},"Hash table operations (hget, hset, hgetall, etc.)",{"type":14,"tag":124,"props":161,"children":162},{},[163],{"type":20,"value":164},"List operations (listadd, listrng, listset, etc.)",{"type":14,"tag":124,"props":166,"children":167},{},[168,170,176],{"type":20,"value":169},"Automatically started by ",{"type":14,"tag":50,"props":171,"children":173},{"className":172},[],[174],{"type":20,"value":175},"dragonfly_db_fnc_addTask",{"type":20,"value":177}," when new tasks are added",{"type":14,"tag":124,"props":179,"children":180},{},[181],{"type":20,"value":182},"Each task execution is logged for debugging purposes",{"type":14,"tag":124,"props":184,"children":185},{},[186],{"type":20,"value":187},"Should typically be spawned rather than called to avoid blocking",{"type":14,"tag":23,"props":189,"children":191},{"id":190},"links",[192],{"type":20,"value":193},"Links",{"type":14,"tag":30,"props":195,"children":196},{},[197,204,206,212,213,219,220,224,225,231,232],{"type":14,"tag":198,"props":199,"children":201},"a",{"href":200},"/dragonfly/main/addtask",[202],{"type":20,"value":203},"Add Task",{"type":20,"value":205}," |\n",{"type":14,"tag":198,"props":207,"children":209},{"href":208},"/dragonfly/main/handler",[210],{"type":20,"value":211},"Handler",{"type":20,"value":205},{"type":14,"tag":198,"props":214,"children":216},{"href":215},"/dragonfly/main/init",[217],{"type":20,"value":218},"Init",{"type":20,"value":205},{"type":14,"tag":198,"props":221,"children":222},{"href":4},[223],{"type":20,"value":21},{"type":20,"value":205},{"type":14,"tag":198,"props":226,"children":228},{"href":227},"/dragonfly/main/scheduler",[229],{"type":20,"value":230},"Scheduler",{"type":20,"value":205},{"type":14,"tag":198,"props":233,"children":235},{"href":234},"/dragonfly/main/setup",[236],{"type":20,"value":237},"Setup",{"title":7,"searchDepth":239,"depth":239,"links":240},2,[241,242,243,244,245,250,251],{"id":25,"depth":239,"text":28},{"id":37,"depth":239,"text":40},{"id":56,"depth":239,"text":59},{"id":67,"depth":239,"text":70},{"id":78,"depth":239,"text":81,"children":246},[247,249],{"id":85,"depth":248,"text":88},3,{"id":100,"depth":248,"text":103},{"id":115,"depth":239,"text":118},{"id":190,"depth":239,"text":193},"markdown","content:dragonfly:main:processQueue.md","content","dragonfly/main/processQueue.md","dragonfly/main/processQueue","md",1742777962700]