Test lần 1 oke
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2026-06-13 13:49:42 +07:00
parent 695a942a5d
commit d6f22132ce
3 changed files with 83 additions and 52 deletions

View File

@@ -32,7 +32,7 @@ public:
private:
std::filesystem::path queue_path_;
mutable std::mutex mu_;
mutable std::recursive_mutex mu_;
nlohmann::json queue_;
nlohmann::json runner_;
@@ -46,12 +46,12 @@ private:
void ensureRunnerDefaults();
void startWorkerIfNeeded();
void workerLoop();
void processQueueUnlocked();
void executeMissionUnlocked(nlohmann::json& entry);
void runMissionActions(nlohmann::json& entry);
void executeActionsUnlocked(const nlohmann::json& actions,
const nlohmann::json& parameters,
nlohmann::json& log,
int loop_depth);
void saveLocked() const;
void sleepMs(int ms);
void setRunnerState(const std::string& state, const std::string& message = "");
void insertByPriorityUnlocked(nlohmann::json& entry);