MCPcopy Create free account
hub / github.com/BlazingDB/blazingsql / add_task

Method add_task

engine/src/execution_graph/executor.cpp:9–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace execution{
8
9size_t executor::add_task(std::vector<std::unique_ptr<ral::cache::CacheData > > inputs,
10 std::shared_ptr<ral::cache::CacheMachine> output,
11 ral::cache::kernel * kernel, const std::map<std::string, std::string>& args) {
12
13 auto task_id = task_id_counter.fetch_add(1, std::memory_order_relaxed);
14
15 kernel->add_task(task_id);
16
17 auto task_added = std::make_unique<task>(
18 std::move(inputs),output,task_id, kernel, attempts_limit, args
19 );
20
21 task_queue.put(std::move(task_added));
22 return task_id;
23}
24
25
26void executor::add_task(std::vector<std::unique_ptr<ral::cache::CacheData > > inputs,

Callers 2

startMethod · 0.45
runMethod · 0.45

Calls 1

putMethod · 0.45

Tested by

no test coverage detected