chore: Less delay in ETL taskman (#2802)

This commit is contained in:
Alex Kremer
2025-12-09 12:25:00 +00:00
committed by GitHub
parent bea0b51c8b
commit c1f2f5b100

View File

@@ -87,8 +87,8 @@ TaskManager::run(std::size_t numExtractors)
util::async::AnyOperation<void>
TaskManager::spawnExtractor(TaskQueue& queue)
{
// TODO: these values may be extracted to config later and/or need to be fine-tuned on a realistic system
static constexpr auto kDELAY_BETWEEN_ATTEMPTS = std::chrono::milliseconds{100u};
// TODO https://github.com/XRPLF/clio/issues/2838: the approach should be changed to a reactive one instead
static constexpr auto kDELAY_BETWEEN_ATTEMPTS = std::chrono::milliseconds{10u};
static constexpr auto kDELAY_BETWEEN_ENQUEUE_ATTEMPTS = std::chrono::milliseconds{1u};
return ctx_.execute([this, &queue](auto stopRequested) {