fix crashes in some non-server actions
This commit is contained in:
+3
-2
@@ -12,6 +12,7 @@
|
||||
struct StepGraph {
|
||||
struct Step {
|
||||
std::vector<std::shared_ptr<Step>> downstream_dependencies;
|
||||
std::vector<std::weak_ptr<Step>> upstream_dependencies;
|
||||
std::function<void()> execute;
|
||||
uint64_t last_run_id = 0;
|
||||
};
|
||||
@@ -22,6 +23,6 @@ struct StepGraph {
|
||||
StepGraph() = default;
|
||||
|
||||
void add_step(const std::string& name, const std::vector<std::string>& depends_on_names, std::function<void()>&& execute);
|
||||
void run(const std::string& start_step);
|
||||
void run(const std::vector<std::string>& start_steps);
|
||||
void run(const std::string& start_step, bool run_upstreams);
|
||||
void run(const std::vector<std::string>& start_steps, bool run_upstreams);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user