5 #include "libbuilder_api.h"
9 Runs multiple tasks as one unit, one after the other. Execution of the chain
10 will stop if any of the component tasks terminates with an error.
12 class LIBBUILDER_API ChainedTask: public Task
15 std::vector<Task *> tasks;
17 Status final_status = RUNNING;
20 ChainedTask(Task *t) { add_task(t); }
23 void add_task(Task *);
25 std::string get_command() const override;
26 void start() override;
27 Status check() override;
28 Status wait() override;