diff options
author | uzhas <uzhas@ydb.tech> | 2022-08-16 20:10:12 +0300 |
---|---|---|
committer | uzhas <uzhas@ydb.tech> | 2022-08-16 20:10:12 +0300 |
commit | 5a439f688d18a567ea4c9a7024cc113982cdc827 (patch) | |
tree | c204b80b78d613b5802ee60e11f8adcd6dfa3801 | |
parent | ce24ec5803a45494f1a8fb19a06dcf037852ab10 (diff) | |
download | ydb-5a439f688d18a567ea4c9a7024cc113982cdc827.tar.gz |
allow trivial execution deadline value
-rw-r--r-- | ydb/core/yq/libs/control_plane_storage/internal/task_get.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ydb/core/yq/libs/control_plane_storage/internal/task_get.cpp b/ydb/core/yq/libs/control_plane_storage/internal/task_get.cpp index fde042d454..f91e89755d 100644 --- a/ydb/core/yq/libs/control_plane_storage/internal/task_get.cpp +++ b/ydb/core/yq/libs/control_plane_storage/internal/task_get.cpp @@ -173,6 +173,9 @@ TDuration ExtractLimit(const TTask& task) { case YandexQuery::Limits::TimeoutCase::kExecutionDeadline: { auto now = TInstant::Now(); auto deadline = NProtoInterop::CastFromProto(limits.execution_deadline()); + if (!deadline) { + break; + } if (deadline <= now) { userExecutionLimit = TDuration::MilliSeconds(1); } else { |