#pragma once

#include <maps/wikimap/mapspro/services/mrc/libs/db/include/toloka/platform.h>
#include <maps/libs/pgpool/include/pgpool3.h>
#include <yandex/maps/mrc/toloka_client/client.h>


namespace maps::mrc::toloka {

/// Manages the transition of toloka tasks from state 'Cancelling'
/// to 'Cancelled' by zeroing their overlap in Toloka
void cancelTasks(
    db::toloka::Platform platform,
    pgpool3::Pool& pool,
    toloka::io::TolokaClient& client);

} // namespace maps::mrc::toloka
