Task ttl can be set with task manager test api, which is disabled in release mode. Move get_and_update_ttl from task manager test api to task manager api, so that it can be used in release mode. Closes #12894
19 lines
248 B
C++
19 lines
248 B
C++
/*
|
|
* Copyright (C) 2022-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "api.hh"
|
|
#include "db/config.hh"
|
|
|
|
namespace api {
|
|
|
|
void set_task_manager(http_context& ctx, routes& r, db::config& cfg);
|
|
|
|
}
|